Skip to content

Commit 46f7be0

Browse files
hdellerphilmd
authored andcommitted
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 <[email protected]> Co-developed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]>
1 parent 3d66ec2 commit 46f7be0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

target/hppa/cpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ static void hppa_cpu_reset_hold(Object *obj, ResetType type)
205205
}
206206
cs->exception_index = -1;
207207
cs->halted = 0;
208+
cpu_set_pc(cs, 0xf0000004);
208209

209210
memset(env, 0, offsetof(CPUHPPAState, end_reset_fields));
210211

0 commit comments

Comments
 (0)