ppc: POWER7 had ACOP and PID registers
We only had them on POWER8, add them to POWER7 as well Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
c5a8d8f32d
commit
8eb0f56372
|
@ -8024,6 +8024,21 @@ static void gen_spr_power8_book4(CPUPPCState *env)
|
|||
#endif
|
||||
}
|
||||
|
||||
static void gen_spr_power7_book4(CPUPPCState *env)
|
||||
{
|
||||
/* Add a number of P7 book4 registers */
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
spr_register_kvm(env, SPR_ACOP, "ACOP",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
KVM_REG_PPC_ACOP, 0);
|
||||
spr_register_kvm(env, SPR_BOOKS_PID, "PID",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
KVM_REG_PPC_PID, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void init_proc_book3s_64(CPUPPCState *env, int version)
|
||||
{
|
||||
gen_spr_ne_601(env);
|
||||
|
@ -8066,6 +8081,9 @@ static void init_proc_book3s_64(CPUPPCState *env, int version)
|
|||
gen_spr_power6_common(env);
|
||||
gen_spr_power6_dbg(env);
|
||||
}
|
||||
if (version == BOOK3S_CPU_POWER7) {
|
||||
gen_spr_power7_book4(env);
|
||||
}
|
||||
if (version >= BOOK3S_CPU_POWER8) {
|
||||
gen_spr_power8_tce_address_control(env);
|
||||
gen_spr_power8_ids(env);
|
||||
|
|
Loading…
Reference in a new issue