Skip to content

Commit 3d66ec2

Browse files
committed
target/hppa: Only set PSW 'M' bit on reset
On reset: "All PSW bits except the M bit is reset. The M bit is set." Commit 1a19da0 ("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é <[email protected]> Acked-by: Helge Deller <[email protected]> Message-Id: <[email protected]>
1 parent 20f7b89 commit 3d66ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/hppa/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type)
209209
memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));
210210

211211
cpu_hppa_loaded_fr0(env);
212-
cpu_hppa_put_psw(env, PSW_W);
212+
cpu_hppa_put_psw(env, PSW_M);
213213
}
214214

215215
static ObjectClass *hppa_cpu_class_by_name(const char *cpu_model)

0 commit comments

Comments
 (0)