]> Git Repo - qemu.git/commitdiff
target-sparc: Use cpu_fsr in stfsr
authorRichard Henderson <[email protected]>
Wed, 9 Sep 2015 18:23:02 +0000 (11:23 -0700)
committerRichard Henderson <[email protected]>
Tue, 12 Jul 2016 18:02:56 +0000 (11:02 -0700)
Tested-by: Mark Cave-Ayland <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
target-sparc/translate.c

index ed0853aec9c41dccaa45efb8cb94e5f43c3103cc..dea1b5f8e3c0c8e52e007d58f15a901f3847b17e 100644 (file)
@@ -5403,17 +5403,14 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
                     break;
                 case 0x25: /* stfsr, V9 stxfsr */
                     {
-                        TCGv t = get_temp_tl(dc);
-
-                        tcg_gen_ld_tl(t, cpu_env, offsetof(CPUSPARCState, fsr));
 #ifdef TARGET_SPARC64
                         gen_address_mask(dc, cpu_addr);
                         if (rd == 1) {
-                            tcg_gen_qemu_st64(t, cpu_addr, dc->mem_idx);
+                            tcg_gen_qemu_st64(cpu_fsr, cpu_addr, dc->mem_idx);
                             break;
                         }
 #endif
-                        tcg_gen_qemu_st32(t, cpu_addr, dc->mem_idx);
+                        tcg_gen_qemu_st32(cpu_fsr, cpu_addr, dc->mem_idx);
                     }
                     break;
                 case 0x26:
This page took 0.02574 seconds and 4 git commands to generate.