Gdbstub: handle read of fpscr
PATCH 1/1 Gdbstub: handle read of fpscr
Signed-off-by Fabien Chouteau <[email protected]>
--- gdbstub.c | 2 +- target-ppc/translate_init.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
gdbstub.c +1 -1
@@ -724,7 +724,7 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n) {if (gdb_has_xml)return 0 ; -GET_REG32 (0 );/* fpscr */ +GET_REG32 (env->fpscr); } } }
target-ppc/translate_init.c +1 -2
@@ -9679,8 +9679,7 @@ static int gdb_get_float_reg(CPUState *env, uint8_t *mem_buf, int n)return 8 ; }if (n ==32 ) { -/* FPSCR not implemented */ -memset (mem_buf,0 ,4 ); +stl_p (mem_buf, env->fpscr);return 4 ; }return 0 ;
Signature · 1 line
1.7.4.1
Am 01.09.2011 um 16:56 schrieb Fabien Chouteau <[email protected]>:
Quoted 2 lines
Signed-off-by Fabien Chouteau <[email protected]>
Tanks, applied. But please add a patch description next time :)
Alex