diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-13 09:52:19 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-13 09:52:19 +0000 |
commit | 65850a0254744050f79c42347f84cc79d0c2348e (patch) | |
tree | 9180494cc7c6ba386065149b46a0475c73bfc330 /tcg/sparc/tcg-target.c | |
parent | 338e9e6ce5a1e04f52b3c82d34bea4e836c01003 (diff) | |
download | hqemu-65850a0254744050f79c42347f84cc79d0c2348e.zip hqemu-65850a0254744050f79c42347f84cc79d0c2348e.tar.gz |
Fix Sparc host build breakage
Fix error:
CC sparc-bsd-user/op_helper.o
In file included from /src/qemu/tcg/tcg.c:158:
/src/qemu/tcg/sparc/tcg-target.c:728:5: "TARGET_PHYS_ADDR_BITS" is not defined
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/sparc/tcg-target.c')
-rw-r--r-- | tcg/sparc/tcg-target.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index d4ddaa7..620c666 100644 --- a/tcg/sparc/tcg-target.c +++ b/tcg/sparc/tcg-target.c @@ -725,11 +725,19 @@ static const void * const qemu_st_helpers[4] = { #define TARGET_LD_OP LDX #endif +#if defined(CONFIG_SOFTMMU) #if TARGET_PHYS_ADDR_BITS == 32 #define TARGET_ADDEND_LD_OP LDUW #else #define TARGET_ADDEND_LD_OP LDX #endif +#else +#if TARGET_ABI_BITS == 32 +#define TARGET_ADDEND_LD_OP LDUW +#else +#define TARGET_ADDEND_LD_OP LDX +#endif +#endif #ifdef __arch64__ #define HOST_LD_OP LDX |