]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/translate_init.c
PPC: Remove env->hreset_excp_prefix
authorFabien Chouteau <chouteau@adacore.com>
Fri, 29 Mar 2013 02:06:27 +0000 (02:06 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 21:02:40 +0000 (23:02 +0200)
commit2cf3eb6df552cee74b52de9989e270b74e42847e
treed53444ebe7b7d442dbe874d34b873ef584b91189
parent3b961124bf8a0b490e4fc3a6a39e004500ae6967
PPC: Remove env->hreset_excp_prefix

This value is not needed if we use correctly the MSR[IP] bit.

excp_prefix is always 0x00000000, except when the MSR[IP] bit is
implemented and set to 1, in that case excp_prefix is 0xfff00000.

The handling of MSR[IP] was already implemented but not used at reset
because the value of env->msr was changed "manually".

The patch uses the function hreg_store_msr() to set env->msr, this
ensures a good handling of MSR[IP] at reset, and therefore a good value
for excp_prefix.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
target-ppc/cpu.h
target-ppc/machine.c
target-ppc/translate_init.c