summaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-05-01 00:44:51 +0000
committerAlexander Graf <agraf@suse.de>2013-05-06 17:22:48 +0200
commit04559d5210860ea5853db09c75ea8ff2f8843e16 (patch)
treededa8821ed32ac9b4cd91aebe9b98bb42d08d9c4 /target-ppc
parentc05541ee191107eb35093fb693e4ec038e60d2c0 (diff)
downloadqemu-04559d5210860ea5853db09c75ea8ff2f8843e16.tar.gz
qemu-04559d5210860ea5853db09c75ea8ff2f8843e16.tar.bz2
qemu-04559d5210860ea5853db09c75ea8ff2f8843e16.zip
target-ppc: Add read and write of PPR SPR
Recent Linux kernels save and restore the PPR across exceptions so we need to handle it. Signed-off-by: Anton Blanchard <anton@au1.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 6feb62abcd..021a31e209 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7010,6 +7010,10 @@ static void init_proc_POWER7 (CPUPPCState *env)
&spr_read_generic, &spr_write_generic,
&spr_read_generic, &spr_write_generic,
0x00000000);
+ spr_register(env, SPR_PPR, "PPR",
+ &spr_read_generic, &spr_write_generic,
+ &spr_read_generic, &spr_write_generic,
+ 0x00000000);
#if !defined(CONFIG_USER_ONLY)
env->slb_nr = 32;
#endif