SPL only in kernel mode

This commit is contained in:
folkert van heusden 2024-04-21 22:51:58 +02:00
parent 86a788fd3f
commit ae00c95679
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -1569,8 +1569,11 @@ bool cpu::condition_code_operations(const uint16_t instr)
} }
if ((instr & ~7) == 0000230) { // SPLx if ((instr & ~7) == 0000230) { // SPLx
if (getPSW_runmode() == 0) { // only in kernel mode
int level = instr & 7; int level = instr & 7;
setPSW_spl(level); setPSW_spl(level);
}
// // trap via vector 010 only(?) on an 11/60 and not(?) on an 11/70 // // trap via vector 010 only(?) on an 11/60 and not(?) on an 11/70
// trap(010); // trap(010);