From: Maciej W. Rozycki Date: Mon, 3 Nov 2014 18:51:38 +0000 (+0000) Subject: target-mips: Make CP1.FIR read-only here too X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c7d4d98ae7057467f48c02a11ad9120021976089;p=qemu.git 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 --- 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);