1
0
mirror of https://github.com/wfjm/w11.git synced 2026-02-13 11:44:42 +00:00
Files
wfjm.w11/doc/simh_diff_cpuerr_rsv.md
wfjm 3318f99276 BUGFIX: handle CPUERR.rsv correctly
- rtl/w11a
  - pdp11.vhd: vm_stat_type: add err_ser
  - pdp11_sequencer.vhd: BUGFIX: handle CPUERR.rsv correctly
  - pdp11_vmbox.vhd: use err_ser to indicate fatal stack error
- tools/tcode/cpu_details.mac: update A2.7-10
2023-01-11 17:31:21 +01:00

28 lines
1.1 KiB
Markdown

## Known differences between SimH, 11/70, and w11a
### SimH: `CPUERR.rsv` has J11 behavior
The `CPUERR` register in an 11/70 and the J11 has 6 flags that allow the cause
of vector 4 abort to be determined.
For an 11/70, the bit 2 is referred to as _'Red Zone Stack Limit'_ in the
documentation. It is set when a stack limit error is detected.
Other address errors that escalate to a fatal stack error do not set this bit.
For a J11, bit 2 has the very similar name _'Red Stack Trap'_, and is set
whenever a fatal stack error is detected, and thus also when other address
errors escalate to a fatal stack error.
The key differences are:
- on an 11/70, an escalated MMU kernel stack abort will not set any
`CPUERR` bits.
- on a J11, every stack error that causes an emergency stack will set the
`rsv` bit.
SimH implements the J11 behavior also in 11/70 mode.
w11 implements the 11/70 behavior. This is verified in a
[tcode](../tools/tcode/README.md), the test is modified when executed on SimH
(see [cpu_details.mac](../tools/tcode/cpu_details.mac) test A2.7-10).
Tested with SimH V3.12-3.