diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-02-18 21:25:23 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-18 20:38:35 +0000 |
commit | 1b2064d58787944e1364070a53194a077fd35ea3 (patch) | |
tree | cea4158f79e102f29e5719332d6a84ca732645af /qemu-common.h | |
parent | f3e476d55c416e325d06c520b5516135060ad59d (diff) | |
download | qemu-1b2064d58787944e1364070a53194a077fd35ea3.tar.gz qemu-1b2064d58787944e1364070a53194a077fd35ea3.tar.bz2 qemu-1b2064d58787944e1364070a53194a077fd35ea3.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index b09f71757a..a98fccd214 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. */ |