mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 19:38:16 +00:00
9bb67a3f58
Include qom/object.h and exec/memory.h instead of exec/ioport.h; exec/ioport.h was almost everywhere required only for those two includes, not for the content of the header itself. Remove block/aio.h, everybody is already including it through another path. With this change, include/hw/hw.h is freed from qemu-common.h. Backports commit df43d49cb8708b9c88a20afe0d1a3089b550a5b8 from qemu
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/* Declarations for use by hardware emulation. */
|
|
#ifndef QEMU_HW_H
|
|
#define QEMU_HW_H
|
|
|
|
#ifdef CONFIG_USER_ONLY
|
|
#error Cannot include hw/hw.h from user emulation
|
|
#endif
|
|
|
|
#include "exec/cpu-common.h"
|
|
#include "qom/object.h"
|
|
#include "exec/memory.h"
|
|
|
|
#ifdef NEED_CPU_H
|
|
#if TARGET_LONG_BITS == 64
|
|
#define qemu_put_betl qemu_put_be64
|
|
#define qemu_get_betl qemu_get_be64
|
|
#define qemu_put_betls qemu_put_be64s
|
|
#define qemu_get_betls qemu_get_be64s
|
|
#define qemu_put_sbetl qemu_put_sbe64
|
|
#define qemu_get_sbetl qemu_get_sbe64
|
|
#define qemu_put_sbetls qemu_put_sbe64s
|
|
#define qemu_get_sbetls qemu_get_sbe64s
|
|
#else
|
|
#define qemu_put_betl qemu_put_be32
|
|
#define qemu_get_betl qemu_get_be32
|
|
#define qemu_put_betls qemu_put_be32s
|
|
#define qemu_get_betls qemu_get_be32s
|
|
#define qemu_put_sbetl qemu_put_sbe32
|
|
#define qemu_get_sbetl qemu_get_sbe32
|
|
#define qemu_put_sbetls qemu_put_sbe32s
|
|
#define qemu_get_sbetls qemu_get_sbe32s
|
|
#endif
|
|
#endif
|
|
|
|
typedef void QEMUResetHandler(void *opaque);
|
|
|
|
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
|
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
|
|
|
|
#endif
|