diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-09-05 11:07:01 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-09-17 17:55:30 +0000 |
commit | 26a74ae377c01f6e1980b4918027b9eec767bdc7 (patch) | |
tree | a3271fd1bde1bf4060abc72b3f31acec38277234 /tcg/sparc/tcg-target.c | |
parent | 5ddd17b4034077abd206ffbfd1d348ebeb804959 (diff) | |
download | hqemu-26a74ae377c01f6e1980b4918027b9eec767bdc7.zip hqemu-26a74ae377c01f6e1980b4918027b9eec767bdc7.tar.gz |
tcg/sparc: Only one call output register needed for 64 bit hosts
The second register is only needed for 32 bit hosts.
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/sparc/tcg-target.c')
-rw-r--r-- | tcg/sparc/tcg-target.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index ac76e11..fc3fd7f 100644 --- a/tcg/sparc/tcg-target.c +++ b/tcg/sparc/tcg-target.c @@ -84,9 +84,11 @@ static const int tcg_target_call_iarg_regs[6] = { TCG_REG_O5, }; -static const int tcg_target_call_oarg_regs[2] = { +static const int tcg_target_call_oarg_regs[] = { TCG_REG_O0, - TCG_REG_O1, +#if TCG_TARGET_REG_BITS == 32 + TCG_REG_O1 +#endif }; static inline int check_fit_tl(tcg_target_long val, unsigned int bits) |