1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-13 23:37:13 +00:00
Mark Pizzolato 2daa41ecb3 PDP11: Fixed bug in CSM (John Dundas)
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
2013-12-06 10:54:56 -08:00
..
2013-10-12 13:33:01 -07:00
2013-07-05 00:16:11 -04:00
2013-07-08 07:22:29 -04:00
2013-07-11 15:39:15 -04:00
2013-11-05 16:42:17 -08:00
2013-02-05 04:41:48 -08:00
2013-02-06 17:48:43 -08:00
2013-11-05 16:42:17 -08:00
2013-11-05 16:42:17 -08:00
2013-11-05 16:42:17 -08:00
2013-07-11 15:39:15 -04:00
2011-04-15 08:35:15 -07:00