summaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-09-09 11:23:02 -0700
committerRichard Henderson <rth@twiddle.net>2016-07-12 11:02:56 -0700
commitba2397d1ca6546e8cf5bd9e2939923546ac3091a (patch)
tree02e3d174c84ed0a7169446e258288031b0c246f4 /target-sparc
parent7385aed20db5d83979f683b9d0048674411e963c (diff)
downloadqemu-ba2397d1ca6546e8cf5bd9e2939923546ac3091a.tar.gz
qemu-ba2397d1ca6546e8cf5bd9e2939923546ac3091a.tar.bz2
qemu-ba2397d1ca6546e8cf5bd9e2939923546ac3091a.zip
target-sparc: Use cpu_fsr in stfsr
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index ed0853aec9..dea1b5f8e3 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -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: