aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorFabien Chouteau <chouteau@adacore.com>2011-09-01 04:56:00 +0000
committerAlexander Graf <agraf@suse.de>2011-10-06 09:48:05 +0200
commit5a576fb3e20c3087a6d30be5a94550ace003c6d7 (patch)
tree637669ec0fca63e6e623ae158848dc79ab999114 /target-ppc
parentf5b6ffcf2a94337df31e801dd11b34896bd4fe2b (diff)
Gdbstub: handle read of fpscr
Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 211f3bd0c1..d09c7ca98b 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -9700,8 +9700,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;