diff options
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 d4ddaa79b3..620c66657e 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 |