aboutsummaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-02-18 21:25:23 +0100
committerBlue Swirl <blauwirbel@gmail.com>2010-02-18 20:38:35 +0000
commit24ebf5f31a178051cff1a4aab5ba621037191577 (patch)
treecea4158f79e102f29e5719332d6a84ca732645af /qemu-common.h
parentdf2a54e6987172ad5de725b541e3650834d329bf (diff)
downloadqemu-24ebf5f31a178051cff1a4aab5ba621037191577.zip
qemu-24ebf5f31a178051cff1a4aab5ba621037191577.tar.gz
qemu-24ebf5f31a178051cff1a4aab5ba621037191577.tar.bz2
get rid of hostregs_helper.h
Since b567b38 (target-arm: remove T0 and T1, 2009-10-16) the only global register that is used is AREG0, so the complexity of hostregs_helper.h is unused. Use regular assignments and a compiler optimization barrier. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h
index b09f717..a98fccd 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -11,6 +11,8 @@
#define QEMU_WARN_UNUSED_RESULT
#endif
+#define QEMU_BUILD_BUG_ON(x) typedef char __build_bug_on__##__LINE__[(x)?-1:1];
+
/* Hack around the mess dyngen-exec.h causes: We need QEMU_NORETURN in files that
cannot include the following headers without conflicts. This condition has
to be removed once dyngen is gone. */