aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/gdbstub.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2015-05-25 01:28:56 +0200
committerAurelien Jarno <aurelien@aurel32.net>2015-06-12 12:02:48 +0200
commit34086945254c035a03e01e472d99e4524a2f2416 (patch)
treec90566470a7c76d82670f80ef05111dc8b075304 /target-sh4/gdbstub.c
parent5ed9a259c164bb9fd2a6fe8a363a4bda2e4a5461 (diff)
target-sh4: Split out T from SR
In preparation for more efficient setting of this field. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-sh4/gdbstub.c')
-rw-r--r--target-sh4/gdbstub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/gdbstub.c b/target-sh4/gdbstub.c
index 05ba72893d..a365a27aad 100644
--- a/target-sh4/gdbstub.c
+++ b/target-sh4/gdbstub.c
@@ -51,7 +51,7 @@ int superh_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
case 21:
return gdb_get_regl(mem_buf, env->macl);
case 22:
- return gdb_get_regl(mem_buf, env->sr);
+ return gdb_get_regl(mem_buf, cpu_read_sr(env));
case 23:
return gdb_get_regl(mem_buf, env->fpul);
case 24:
@@ -111,7 +111,7 @@ int superh_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
env->macl = ldl_p(mem_buf);
break;
case 22:
- env->sr = ldl_p(mem_buf);
+ cpu_write_sr(env, ldl_p(mem_buf));
break;
case 23:
env->fpul = ldl_p(mem_buf);