From: Stefan Weil Date: Mon, 5 Sep 2011 09:07:01 +0000 (+0200) Subject: tcg/sparc: Only one call output register needed for 64 bit hosts X-Git-Tag: v1.0-rc0~219 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26a74ae377c01f6e1980b4918027b9eec767bdc7;p=thirdparty%2Fqemu.git 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 Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index ac76e1198dd..fc3fd7ffced 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)