Please sign in to comment.
Prevent paired singles routines clobbering PC,SRR0
Paired single (ps) instructions can call asm_routines that try to update PowerPC::ppcState.pc. At the time the asm_routine is built, emulation has not started and the PC is invalid (0). If the ps instruction causes an exception (e.g. DSI), SRR0 gets clobbered with the invalid PC. This change makes the relevant ps instructions store PC before calling out to asm_routines, and prevents the asm_routine from trying to store PC itself.
- Loading branch information...
Showing with 35 additions and 11 deletions.