aboutsummaryrefslogtreecommitdiff
path: root/target/microblaze/gdbstub.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-08-19 21:33:32 -0700
committerRichard Henderson <richard.henderson@linaro.org>2020-09-01 07:41:38 -0700
commit76e8187d0078e6b926a9a648fb755df4dd266e05 (patch)
treed4fdbdd7956725275013822ca22cfbb6bd834fe8 /target/microblaze/gdbstub.c
parent8a42ddf013738a15c9cb739b9dfc07500cb27a21 (diff)
target/microblaze: Split out PC from env->sregs
Begin eliminating the sregs array in favor of individual members. Does not correct the width of pc, yet. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/microblaze/gdbstub.c')
-rw-r--r--target/microblaze/gdbstub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/microblaze/gdbstub.c b/target/microblaze/gdbstub.c
index e65ec051a5..9ea31f8d2f 100644
--- a/target/microblaze/gdbstub.c
+++ b/target/microblaze/gdbstub.c
@@ -59,7 +59,7 @@ int mb_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)
val = env->regs[n];
break;
case GDB_PC:
- val = env->sregs[SR_PC];
+ val = env->pc;
break;
case GDB_MSR:
val = env->sregs[SR_MSR];
@@ -115,7 +115,7 @@ int mb_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
env->regs[n] = tmp;
break;
case GDB_PC:
- env->sregs[SR_PC] = tmp;
+ env->pc = tmp;
break;
case GDB_MSR:
env->sregs[SR_MSR] = tmp;