diff options
author | Alexey Kardashevskiy | 2014-03-19 14:03:57 +0100 |
---|---|---|
committer | Andreas Färber | 2014-03-20 02:39:33 +0100 |
commit | d197fdbc3b83655f3c145722805f0998c04dce16 (patch) | |
tree | 3307a2df24cdbaa05b2889bf01e49303990a1743 /target-ppc/cpu.h | |
parent | spapr_hcall: Fix h_enter to loop correctly (diff) | |
download | qemu-d197fdbc3b83655f3c145722805f0998c04dce16.tar.gz qemu-d197fdbc3b83655f3c145722805f0998c04dce16.tar.xz qemu-d197fdbc3b83655f3c145722805f0998c04dce16.zip |
target-ppc: Reset SPRs on CPU reset
This resets SPR values to defaults on CPU reset. This should help
with little-endian guests reboot issues.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 91b7ae5534..8c181e7245 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -334,6 +334,7 @@ struct ppc_spr_t { void (*hea_write)(void *opaque, int spr_num, int gpr_num); #endif const char *name; + target_ulong default_value; #ifdef CONFIG_KVM /* We (ab)use the fact that all the SPRs will have ids for the * ONE_REG interface will have KVM_REG_PPC to use 0 as meaning, |