[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 3/5] target/hppa: Only set PSW 'M' bit on reset
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 3/5] target/hppa: Only set PSW 'M' bit on reset |
Date: |
Mon, 30 Dec 2024 16:25:17 +0100 |
On reset:
"All PSW bits except the M bit is reset. The M bit is set."
Commit 1a19da0da44 ("target/hppa: Fill in hppa_cpu_do_interrupt /
hppa_cpu_exec_interrupt") inadvertently set the W bit at RESET,
remove it and set the M bit.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Only tested using QEMU mainstream test suite, IOW not much.
---
target/hppa/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c
index 41538d39d62..dbd46842841 100644
--- a/target/hppa/cpu.c
+++ b/target/hppa/cpu.c
@@ -209,7 +209,7 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type)
memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));
cpu_hppa_loaded_fr0(env);
- cpu_hppa_put_psw(env, PSW_W);
+ cpu_hppa_put_psw(env, PSW_M);
}
static ObjectClass *hppa_cpu_class_by_name(const char *cpu_model)
--
2.47.1
- [PATCH v3 0/5] hppa CPU reset and speedup, Philippe Mathieu-Daudé, 2024/12/30
- [PATCH v3 1/5] target/hppa: Convert hppa_cpu_init() to ResetHold handler, Philippe Mathieu-Daudé, 2024/12/30
- [PATCH v3 2/5] hw/hppa: Reset vCPUs calling resettable_reset(), Philippe Mathieu-Daudé, 2024/12/30
- [PATCH v3 3/5] target/hppa: Only set PSW 'M' bit on reset,
Philippe Mathieu-Daudé <=
- [PATCH v3 4/5] target/hppa: Set PC on vCPU reset, Philippe Mathieu-Daudé, 2024/12/30
- [PATCH v3 5/5] target/hppa: Speed up hppa_is_pa20(), Philippe Mathieu-Daudé, 2024/12/30
- Re: [PATCH v3 0/5] hppa CPU reset and speedup, Helge Deller, 2024/12/30
- Re: [PATCH v3 0/5] hppa CPU reset and speedup, Philippe Mathieu-Daudé, 2024/12/30