From 646b2fadd638d59a87265007330de12d0f01d240 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Wed, 1 May 2013 00:44:51 +0000 Subject: [PATCH] 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 Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.4.GIT