mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
target-ppc: Enable PPR and VRSAVE SPRs migration
This hooks SPR with their "KVM set_one_reg" counterparts which enables their migration. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
4ee4a03b38
commit
7303f83db6
@ -7399,10 +7399,10 @@ static void gen_spr_book3s_altivec(CPUPPCState *env)
|
||||
return;
|
||||
}
|
||||
|
||||
spr_register(env, SPR_VRSAVE, "SPR_VRSAVE",
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
0x00000000);
|
||||
spr_register_kvm(env, SPR_VRSAVE, "VRSAVE",
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
KVM_REG_PPC_VRSAVE, 0x00000000);
|
||||
|
||||
/* Can't find information on what this should be on reset. This
|
||||
* value is the one used by 74xx processors. */
|
||||
@ -7629,10 +7629,10 @@ static void gen_spr_power6_dbg(CPUPPCState *env)
|
||||
|
||||
static void gen_spr_power5p_common(CPUPPCState *env)
|
||||
{
|
||||
spr_register(env, SPR_PPR, "PPR",
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
0x00000000);
|
||||
spr_register_kvm(env, SPR_PPR, "PPR",
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
KVM_REG_PPC_PPR, 0x00000000);
|
||||
}
|
||||
|
||||
static void gen_spr_power6_common(CPUPPCState *env)
|
||||
|
Loading…
Reference in New Issue
Block a user