Skip to content
Snippets Groups Projects
Commit 82c09f2f authored by Alexander Graf's avatar Alexander Graf Committed by Aurelien Jarno
Browse files

target-ppc: fix ppc32 kvm build


My segment sync patch broke compilation on PPC32, because it was trying to
sync the SLB even though ppc32 CPUs don't have an SLB.

So let's only sync it when we're on a PP64 one!

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 384dce1e
No related branches found
No related tags found
No related merge requests found
......@@ -135,10 +135,12 @@ int kvm_arch_get_registers(CPUState *env)
env->sdr1 = sregs.u.s.sdr1;
/* Sync SLB */
#ifdef TARGET_PPC64
for (i = 0; i < 64; i++) {
ppc_store_slb(env, sregs.u.s.ppc64.slb[i].slbe,
sregs.u.s.ppc64.slb[i].slbv);
}
#endif
/* Sync SRs */
for (i = 0; i < 16; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment