mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
John Dundas said:
Bob and all,
I ran across what I believe to be a bug in the CSM code:
case 070: /* CSM */
if (CPUT (HAS_CSM) && (MMR3 & MMR3_CSM) || (cm != MD_KER)) {
According to the Architecture Handbook, CSM may be executed only if the MMR3 bit is set AND the mode is not Kernel. Changing the code to:
case 070: /* CSM */
if (CPUT (HAS_CSM) && (MMR3 & MMR3_CSM) && (cm != MD_KER)) {
also has the effect of making the ZKDKB0 diagnostic much happier.
Thanks,
John
--
John A. Dundas III
Description
The Open SIMH simulators package
Languages
C
96.9%
Assembly
1%
CMake
0.5%
Batchfile
0.4%
Makefile
0.4%
Other
0.5%