aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-06-04 22:50:52 +1000
committerAlexander Graf <agraf@suse.de>2014-06-16 13:24:44 +0200
commit7fc2db18ce33994e59ab019ff66308906b3c0170 (patch)
treed9d11cac1236b7c7bb7553d3ec0a6a2ce4da5cb6 /target-ppc
parent6a1eed3f49e0fc5ef94906c0eab5314bc32bc8ae (diff)
target-ppc: Make use of gen_spr_power5p_lpar() for POWER7/8
This makes use of generic gen_spr_power5p_lpar() which registers LPCR SPR. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 3617f5b34b..7d2eb1fa24 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7806,14 +7806,10 @@ static void init_proc_POWER7 (CPUPPCState *env)
gen_spr_book3s_purr(env);
gen_spr_book3s_common(env);
gen_spr_power5p_common(env);
+ gen_spr_power5p_lpar(env);
gen_spr_power6_common(env);
gen_spr_power6_dbg(env);
gen_spr_amr(env);
- /* Logical partitionning */
- spr_register_kvm(env, SPR_LPCR, "LPCR",
- SPR_NOACCESS, SPR_NOACCESS,
- &spr_read_generic, &spr_write_generic,
- KVM_REG_PPC_LPCR, 0x00000000);
#if !defined(CONFIG_USER_ONLY)
env->slb_nr = 32;
#endif