aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-12-30 12:47:52 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 17:16:04 +0100
commit46f7be06c8e568ec5d5c4aa07c81b42fc0fc863a (patch)
treed1d670d69702c84e98f9072540ead986173b67de
parent3d66ec208ca75329b61a4e9c4a58462ed5948504 (diff)
downloadqemu-46f7be06c8e568ec5d5c4aa07c81b42fc0fc863a.zip
qemu-46f7be06c8e568ec5d5c4aa07c81b42fc0fc863a.tar.gz
qemu-46f7be06c8e568ec5d5c4aa07c81b42fc0fc863a.tar.bz2
target/hppa: Set PC on vCPU reset
On reset: "The CPU begins fetching instructions from address 0xf0000004. This address is in PDC space." Switch vCPUs to 32-bit mode (PSW_W bit is not set) and start execution at address 0xf0000004. 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-6-philmd@linaro.org>
-rw-r--r--target/hppa/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c
index dbd4684..7278b7c 100644
--- a/target/hppa/cpu.c
+++ b/target/hppa/cpu.c
@@ -205,6 +205,7 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type)
}
cs->exception_index = -1;
cs->halted = 0;
+ cpu_set_pc(cs, 0xf0000004);
memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));