cpu::trap: corrected kernel_mode detection

This commit is contained in:
folkert van heusden 2023-03-25 17:23:07 +01:00
parent 0586b78f97
commit bbd11b82b5
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -1599,7 +1599,7 @@ void cpu::trap(uint16_t vector, const int new_ipl, const bool is_interrupt)
try { try {
processing_trap_depth++; processing_trap_depth++;
bool kernel_mode = psw >> 14; // TODO wrong? bool kernel_mode = !(psw >> 14);
if (processing_trap_depth >= 2) { if (processing_trap_depth >= 2) {
DOLOG(debug, true, "Trap depth %d", processing_trap_depth); DOLOG(debug, true, "Trap depth %d", processing_trap_depth);