target-ppc: move sdr1 value change detection logic to helper_store_sdr1()
commit2828c4cd92b1c0590b959ec022888b1f6909949a
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 9 Feb 2015 22:40:47 +0000 (9 22:40 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 14:00:05 +0000 (9 15:00 +0100)
treeafb1992112aad4329719489a8ea7ee1a2f75cf3f
parent6cb577dde5c2e19025f4f24fdff46c47ba8cd398
target-ppc: move sdr1 value change detection logic to helper_store_sdr1()

Otherwise when cpu_post_load calls ppc_store_sdr1() when restoring a VM
snapshot the value is deemed unchanged and so the internal env->htab*
variables aren't set correctly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/misc_helper.c
target-ppc/mmu_helper.c