diff options
author | Helge Deller <deller@gmx.de> | 2024-12-30 12:46:47 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-13 17:16:04 +0100 |
commit | f4f4173188249d33a3ec4a0c910c168c9181ac9d (patch) | |
tree | 0cf2e7c28e5789a6fc8d1e1b7241258e667e12d1 /rust/qemu-api | |
parent | e4a407d2b41de8a35e2a1ecc0b9f22178ce71577 (diff) | |
download | qemu-f4f4173188249d33a3ec4a0c910c168c9181ac9d.zip qemu-f4f4173188249d33a3ec4a0c910c168c9181ac9d.tar.gz qemu-f4f4173188249d33a3ec4a0c910c168c9181ac9d.tar.bz2 |
target/hppa: Convert hppa_cpu_init() to ResetHold handler
hppa_cpu_initfn() is called once when a HPPA CPU instance is
initialized, but it sets fields which should be set each time
a CPU resets. Rename it as a reset handler, having it matching
the ResettablePhases::hold() signature, and register it as
ResettableClass handler.
Since on reset the CPU registers and TLB entries are expected
to be zero, add a memset() call clearing CPUHPPAState up to
the &end_reset_fields marker.
Signed-off-by: Helge Deller <deller@gmx.de>
Co-developed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20241231190620.24442-3-philmd@linaro.org>
Diffstat (limited to 'rust/qemu-api')
0 files changed, 0 insertions, 0 deletions