mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
ppc: Fix migration of the TAR SPR
The TAR special purpose register currently does not get migrated under KVM because it does not get synchronized with the kernel. Use spr_register_kvm() instead of spr_register() to fix this issue. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
d6f1445faf
commit
1e440cbc99
1 changed files with 4 additions and 4 deletions
|
@ -7714,10 +7714,10 @@ static void spr_write_tar(DisasContext *ctx, int sprn, int gprn)
|
||||||
|
|
||||||
static void gen_spr_power8_tce_address_control(CPUPPCState *env)
|
static void gen_spr_power8_tce_address_control(CPUPPCState *env)
|
||||||
{
|
{
|
||||||
spr_register(env, SPR_TAR, "TAR",
|
spr_register_kvm(env, SPR_TAR, "TAR",
|
||||||
&spr_read_tar, &spr_write_tar,
|
&spr_read_tar, &spr_write_tar,
|
||||||
&spr_read_generic, &spr_write_generic,
|
&spr_read_generic, &spr_write_generic,
|
||||||
0x00000000);
|
KVM_REG_PPC_TAR, 0x00000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void spr_read_tm(DisasContext *ctx, int gprn, int sprn)
|
static void spr_read_tm(DisasContext *ctx, int gprn, int sprn)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue