]> Git Repo - qemu.git/commitdiff
target/mips: Fix gdbstub to read/write 64 bit FP registers
authorYongbok Kim <[email protected]>
Wed, 20 Jun 2018 12:06:18 +0000 (13:06 +0100)
committerAleksandar Markovic <[email protected]>
Wed, 27 Jun 2018 18:13:50 +0000 (20:13 +0200)
Fix gdbstub to read/write 64 bit FP registers

Signed-off-by: Yongbok Kim <[email protected]>
Reviewed-by: Aleksandar Markovic <[email protected]>
Signed-off-by: Aleksandar Markovic <[email protected]>
target/mips/gdbstub.c

index 6d1fb70f2cb786aa6d94994c47fdf46336c7d17a..18e0e6dce4d111ff230a62d5e1fa3af4e4184aa8 100644 (file)
@@ -39,7 +39,7 @@ int mips_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
             return gdb_get_regl(mem_buf, (int32_t)env->active_fpu.fcr0);
         default:
             if (env->CP0_Status & (1 << CP0St_FR)) {
-                return gdb_get_regl(mem_buf,
+                return gdb_get_reg64(mem_buf,
                     env->active_fpu.fpr[n - 38].d);
             } else {
                 return gdb_get_regl(mem_buf,
@@ -100,6 +100,7 @@ int mips_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
             break;
         default:
             if (env->CP0_Status & (1 << CP0St_FR)) {
+                uint64_t tmp = ldq_p(mem_buf);
                 env->active_fpu.fpr[n - 38].d = tmp;
             } else {
                 env->active_fpu.fpr[n - 38].w[FP_ENDIAN_IDX] = tmp;
This page took 0.032618 seconds and 4 git commands to generate.