diff options
Diffstat (limited to 'target/loongarch/gdbstub.c')
-rw-r--r-- | target/loongarch/gdbstub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/loongarch/gdbstub.c b/target/loongarch/gdbstub.c index 0c48834..24e126f 100644 --- a/target/loongarch/gdbstub.c +++ b/target/loongarch/gdbstub.c @@ -21,7 +21,7 @@ int loongarch_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) } else if (n == 32) { return gdb_get_regl(mem_buf, env->pc); } else if (n == 33) { - return gdb_get_regl(mem_buf, env->badaddr); + return gdb_get_regl(mem_buf, env->CSR_BADV); } return 0; } |