aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/translate_init.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 /target-ppc/translate_init.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 'target-ppc/translate_init.c')
-rw-r--r--target-ppc/translate_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 15eebe9177..bd5033c415 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7693,7 +7693,7 @@ static int gdb_set_float_reg(CPUPPCState *env, uint8_t *mem_buf, int n)
return 8;
}
if (n == 32) {
- /* FPSCR not implemented */
+ helper_store_fpscr(env, ldl_p(mem_buf), 0xffffffff);
return 4;
}
return 0;