aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-05-12 11:04:27 -0700
committerBlue Swirl <blauwirbel@gmail.com>2010-05-20 19:58:28 +0000
commit70c482852aed861d728654c7bad9404eff76d9e3 (patch)
treeda2b4b73bce3b8047b615f13a8424f9650a799c2 /target-sparc/op_helper.c
parentda441cffde8f593404e4187c57abf392717da2bc (diff)
downloadqemu-70c482852aed861d728654c7bad9404eff76d9e3.zip
qemu-70c482852aed861d728654c7bad9404eff76d9e3.tar.gz
qemu-70c482852aed861d728654c7bad9404eff76d9e3.tar.bz2
target-sparc: Inline some generation of carry for ADDX/SUBX.
Computing carry is trivial for some inputs. By avoiding an external function call, we generate near-optimal code for the common cases of add+addx (double-word arithmetic) and cmp+addx (a setcc pattern). Signed-off-by: Richard Henderson <rth@twiddle.net> Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r--target-sparc/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index 6deebd3..d0bc277 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -1347,7 +1347,7 @@ void helper_compute_psr(void)
CC_OP = CC_OP_FLAGS;
}
-target_ulong helper_compute_C_icc(void)
+uint32_t helper_compute_C_icc(void)
{
uint32_t ret;