aboutsummaryrefslogtreecommitdiff
path: root/target-info-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-info-stub.c')
-rw-r--r--target-info-stub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-info-stub.c b/target-info-stub.c
index fecc0e7..d96d824 100644
--- a/target-info-stub.c
+++ b/target-info-stub.c
@@ -12,11 +12,17 @@
#include "hw/boards.h"
#include "cpu.h"
+/* Validate correct placement of CPUArchState. */
+QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) != 0);
+QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) != sizeof(CPUState));
+
static const TargetInfo target_info_stub = {
.target_name = TARGET_NAME,
+ .target_arch = SYS_EMU_TARGET__MAX,
.long_bits = TARGET_LONG_BITS,
.cpu_type = CPU_RESOLVING_TYPE,
.machine_typename = TYPE_MACHINE,
+ .endianness = TARGET_BIG_ENDIAN ? ENDIAN_MODE_BIG : ENDIAN_MODE_LITTLE,
};
const TargetInfo *target_info(void)