修订版 | 1ff160cf1ae676356377154c1ba8286204051d26 (tree) |
---|---|
时间 | 2022-01-30 23:33:48 |
作者 | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
target/rx: gdbstub add acc register operation.
I added it because the operation of the acc register was not implemented.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -47,7 +47,7 @@ int rx_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) | ||
47 | 47 | case 24: |
48 | 48 | return gdb_get_regl(mem_buf, env->fpsw); |
49 | 49 | case 25: |
50 | - return 0; | |
50 | + return gdb_get_reg64(mem_buf, env->acc); | |
51 | 51 | } |
52 | 52 | return 0; |
53 | 53 | } |
@@ -103,6 +103,7 @@ int rx_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) | ||
103 | 103 | env->fpsw = ldl_p(mem_buf); |
104 | 104 | break; |
105 | 105 | case 25: |
106 | + env->acc = ldq_p(mem_buf); | |
106 | 107 | return 8; |
107 | 108 | default: |
108 | 109 | return 0; |