diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-07-04 18:15:42 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-10-26 17:18:52 +0000 |
commit | 7a5e4488cd1d0e80500be4781010ac4873a9585b (patch) | |
tree | 07c16246818715be34b696320469c7136c9ebf5f /target-sparc/helper.h | |
parent | 7922703623a989b59ce7f7b57a3c8ebe5c0f6b53 (diff) | |
download | qemu-7a5e4488cd1d0e80500be4781010ac4873a9585b.tar.gz qemu-7a5e4488cd1d0e80500be4781010ac4873a9585b.tar.bz2 qemu-7a5e4488cd1d0e80500be4781010ac4873a9585b.zip |
Sparc: avoid AREG0 for division op helpers
Make [su]div{,cc} helpers take a parameter for CPUState instead
of relying on global env. Move the functions to helper.c.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/helper.h')
-rw-r--r-- | target-sparc/helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target-sparc/helper.h b/target-sparc/helper.h index 943b4badd2..615ddefa92 100644 --- a/target-sparc/helper.h +++ b/target-sparc/helper.h @@ -35,10 +35,10 @@ DEF_HELPER_2(check_align, void, tl, i32) DEF_HELPER_1(debug, void, env) DEF_HELPER_1(save, void, env) DEF_HELPER_1(restore, void, env) -DEF_HELPER_2(udiv, tl, tl, tl) -DEF_HELPER_2(udiv_cc, tl, tl, tl) -DEF_HELPER_2(sdiv, tl, tl, tl) -DEF_HELPER_2(sdiv_cc, tl, tl, tl) +DEF_HELPER_3(udiv, tl, env, tl, tl) +DEF_HELPER_3(udiv_cc, tl, env, tl, tl) +DEF_HELPER_3(sdiv, tl, env, tl, tl) +DEF_HELPER_3(sdiv_cc, tl, env, tl, tl) DEF_HELPER_2(stdf, void, tl, int) DEF_HELPER_2(lddf, void, tl, int) DEF_HELPER_2(ldqf, void, tl, int) |