PDP11: Fix PSW handling for breakpoints and other aborts
Fixes #701. The issue is more general than just breakpoints, it potentially affects any exception dealt with by the ABORT macro.
This commit is contained in:
parent
a24119aff7
commit
096f9dbd71
1 changed files with 5 additions and 6 deletions
|
@ -932,12 +932,11 @@ while (reason == 0) {
|
|||
|
||||
reg_mods = 0;
|
||||
inst_pc = PC;
|
||||
/* Save PSW also because condition codes need to be preserved.
|
||||
We just save the whole PSW because that is sufficient (that
|
||||
representation is up to date at this point). If restoring is
|
||||
needed, both the PSW and the components that need to be restored
|
||||
are handled explicitly. */
|
||||
inst_psw = PSW;
|
||||
/* Save PSW also because condition codes need to be preserved. We
|
||||
just save the whole PSW because that is sufficient. If
|
||||
restoring is needed, both the PSW and the components that need
|
||||
to be restored are handled explicitly. */
|
||||
inst_psw = get_PSW ();
|
||||
saved_sim_interval = sim_interval;
|
||||
if (BPT_SUMM_PC) { /* possible breakpoint */
|
||||
t_addr pa = relocR (PC | isenable); /* relocate PC */
|
||||
|
|
Loading…
Add table
Reference in a new issue