From 58dd0a478784d4b732a695eb23bf88f4bbf33f5f Mon Sep 17 00:00:00 2001 From: Tom Musta Date: Wed, 12 Nov 2014 15:46:04 -0600 Subject: 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 Signed-off-by: Alexander Graf --- target-ppc/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'target-ppc/translate.c') 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) -- cgit v1.2.3