qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] target/hppa: Add CPU reset method


From: Richard Henderson
Subject: Re: [PATCH 1/2] target/hppa: Add CPU reset method
Date: Sun, 29 Dec 2024 16:07:24 -0800
User-agent: Mozilla Thunderbird

On 12/29/24 15:41, deller@kernel.org wrote:
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(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]