diff options
author | Tom Musta <tommusta@gmail.com> | 2014-11-12 15:46:04 -0600 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2015-01-07 16:16:25 +0100 |
commit | 58dd0a478784d4b732a695eb23bf88f4bbf33f5f (patch) | |
tree | 94034c9988c6900398f1b72df81928af8e30e2de /target-ppc/translate.c | |
parent | 7d45556effa4bf1557ba765b6b94390fb7d06615 (diff) |
target-ppc: Eliminate set_fprf Argument From helper_compute_fprf
The set_fprf argument to the helper_compute_fprf helper function
is no longer necessary -- the helper is only invoked when FPSCR[FPRF]
is going to be set.
Eliminate the unnecessary argument from the function signature and
its corresponding implementation. Change the return value of the
helper to "void". Update the name of the local variable "ret" to
"fprf", which now makes more sense.
Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r-- | target-ppc/translate.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 598f02eef7..a772382cac 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -252,14 +252,8 @@ static inline void gen_reset_fpstatus(void) static inline void gen_compute_fprf(TCGv_i64 arg) { - TCGv_i32 t0 = tcg_temp_new_i32(); - - /* This case might be optimized later */ - tcg_gen_movi_i32(t0, 1); - gen_helper_compute_fprf(t0, cpu_env, arg, t0); + gen_helper_compute_fprf(cpu_env, arg); gen_helper_float_check_status(cpu_env); - - tcg_temp_free_i32(t0); } static inline void gen_set_access_type(DisasContext *ctx, int access_type) |