[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 5/6] target/hppa: Set PC on vCPU reset
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 5/6] target/hppa: Set PC on vCPU reset |
Date: |
Tue, 31 Dec 2024 20:06:19 +0100 |
From: Helge Deller <deller@gmx.de>
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>
---
target/hppa/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c
index dbd46842841..7278b7ca6b5 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));
--
2.47.1
- [PATCH v4 0/6] hppa CPU reset and speedup, Philippe Mathieu-Daudé, 2024/12/31
- [PATCH v4 1/6] tests: Add functional tests for HPPA machines, Philippe Mathieu-Daudé, 2024/12/31
- [PATCH v4 2/6] target/hppa: Convert hppa_cpu_init() to ResetHold handler, Philippe Mathieu-Daudé, 2024/12/31
- [PATCH v4 3/6] hw/hppa: Reset vCPUs calling resettable_reset(), Philippe Mathieu-Daudé, 2024/12/31
- [PATCH v4 4/6] target/hppa: Only set PSW 'M' bit on reset, Philippe Mathieu-Daudé, 2024/12/31
- [PATCH v4 5/6] target/hppa: Set PC on vCPU reset,
Philippe Mathieu-Daudé <=
- [PATCH v4 6/6] target/hppa: Speed up hppa_is_pa20(), Philippe Mathieu-Daudé, 2024/12/31