From d6478bc7e92db4669fac701d7bb8c51756b61d8a Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Tue, 19 Mar 2013 07:41:53 +0000 Subject: PPC/GDB: handle read and write of fpscr Although the support of this register may be uncomplete, there are no reason to prevent the debugger from reading or writing it. Signed-off-by: Fabien Chouteau Signed-off-by: Alexander Graf --- gdbstub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdbstub.c') diff --git a/gdbstub.c b/gdbstub.c index 43b7d4d00f..5167c64bdf 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -781,7 +781,8 @@ static int cpu_gdb_write_register(CPUPPCState *env, uint8_t *mem_buf, int n) /* fpscr */ if (gdb_has_xml) return 0; - return 4; + store_fpscr(env, ldtul_p(mem_buf), 0xffffffff); + return sizeof(target_ulong); } } return 0; -- cgit v1.2.3