mirror of
https://github.com/mborgerson/xemu.git
synced 2026-03-24 12:35:02 +00:00
Unfortunately, an example had to be compile-time disabled, since it relies on higher level crates (qdev, irq etc). The alternative is probably to move that code to an example in qemu-api or elsewere and make a link to it, or include_str. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20250827104147.717203-12-marcandre.lureau@redhat.com Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
28 lines
749 B
C
28 lines
749 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/*
|
|
* This header file is meant to be used as input to the `bindgen` application
|
|
* in order to generate C FFI compatible Rust bindings.
|
|
*/
|
|
|
|
#ifndef __CLANG_STDATOMIC_H
|
|
#define __CLANG_STDATOMIC_H
|
|
/*
|
|
* Fix potential missing stdatomic.h error in case bindgen does not insert the
|
|
* correct libclang header paths on its own. We do not use stdatomic.h symbols
|
|
* in QEMU code, so it's fine to declare dummy types instead.
|
|
*/
|
|
typedef enum memory_order {
|
|
memory_order_relaxed,
|
|
memory_order_consume,
|
|
memory_order_acquire,
|
|
memory_order_release,
|
|
memory_order_acq_rel,
|
|
memory_order_seq_cst,
|
|
} memory_order;
|
|
#endif /* __CLANG_STDATOMIC_H */
|
|
|
|
#include "qemu/osdep.h"
|
|
|
|
#include "qemu/main-loop.h"
|