diff options
Diffstat (limited to 'target-info-stub.c')
| -rw-r--r-- | target-info-stub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-info-stub.c b/target-info-stub.c index ca0caa3686..d96d8249c1 100644 --- a/target-info-stub.c +++ b/target-info-stub.c @@ -12,6 +12,10 @@ #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, |