diff options
Diffstat (limited to 'target/openrisc/gdbstub.c')
-rw-r--r-- | target/openrisc/gdbstub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/openrisc/gdbstub.c b/target/openrisc/gdbstub.c index cb16e76358..31ea013d8c 100644 --- a/target/openrisc/gdbstub.c +++ b/target/openrisc/gdbstub.c @@ -38,7 +38,7 @@ int openrisc_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n) return gdb_get_reg32(mem_buf, env->npc); case 34: /* SR */ - return gdb_get_reg32(mem_buf, env->sr); + return gdb_get_reg32(mem_buf, cpu_get_sr(env)); default: break; @@ -73,7 +73,7 @@ int openrisc_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) break; case 34: /* SR */ - env->sr = tmp; + cpu_set_sr(env, tmp); break; default: |