diff options
author | Maciej W. Rozycki <macro@codesourcery.com> | 2014-11-03 18:51:38 +0000 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2014-12-16 12:45:19 +0000 |
commit | c7d4d98ae7057467f48c02a11ad9120021976089 (patch) | |
tree | 9a85dc1a1da5395240ebfb34ec9a3a6b9c4e4f1e /target-mips | |
parent | 800675f11742b6080e40d17b8d5f35d3a5fc5724 (diff) | |
download | qemu-c7d4d98ae7057467f48c02a11ad9120021976089.tar.gz |
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 <macro@codesourcery.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/gdbstub.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |