From c7d4d98ae7057467f48c02a11ad9120021976089 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 3 Nov 2014 18:51:38 +0000 Subject: target-mips: Make CP1.FIR read-only here too CP1.FIR is read-only in hardware so gdbstub must respect it. We already respect it for CTC1 instructions, so do it here too. Signed-off-by: Maciej W. Rozycki Reviewed-by: Leon Alrae Signed-off-by: Leon Alrae --- target-mips/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-mips/gdbstub.c') diff --git a/target-mips/gdbstub.c b/target-mips/gdbstub.c index 7e3a604afa..e86df0e57c 100644 --- a/target-mips/gdbstub.c +++ b/target-mips/gdbstub.c @@ -105,7 +105,7 @@ int mips_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) RESTORE_ROUNDING_MODE; break; case 71: - env->active_fpu.fcr0 = tmp; + /* FIR is read-only. Ignore writes. */ break; } return sizeof(target_ulong); -- cgit v1.2.1