From: Helge Deller<deller@gmx.de>
Add the CPU reset method, which resets all CPU registers and the TLB to
zero. Then the CPU will switch to 32-bit mode (PSW_W bit is not set) and
start execution at address 0xf0000004.
Although we currently want to zero out all values in the CPUHPPAState
struct, add the end_reset_fields marker in case the state structs gets
extended with other variables later on which should not be reset.
Signed-off-by: Helge Deller<deller@gmx.de>
Reviewed-by: Richard Henderson<richard.henderson@linaro.org>
V4:
- Drop initialization of exception_index in hppa_cpu_initfn()
V3:
- Call reset function from hppa_machine_reset() instead
V2:
- Add end_reset_fields marker
- call reset function in hppa_cpu_initfn()
---
hw/hppa/machine.c | 6 +++---
target/hppa/cpu.c | 26 ++++++++++++++++++++++++--
target/hppa/cpu.h | 5 +++++
3 files changed, 32 insertions(+), 5 deletions(-)