aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorFabien Chouteau <chouteau@adacore.com>2013-03-19 07:41:53 +0000
committerAlexander Graf <agraf@suse.de>2013-03-22 15:28:46 +0100
commitd6478bc7e92db4669fac701d7bb8c51756b61d8a (patch)
tree61898f343ee12570cc85fee4216c61aa00456b32 /gdbstub.c
parent7b5651605836fd29572fd4c8769af5378d351712 (diff)
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 <chouteau@adacore.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c3
1 files changed, 2 insertions, 1 deletions
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;