286: Make LOCK legal with all instructions, per the Programmers' Reference Manual.

This commit is contained in:
OBattler
2024-06-09 19:58:16 +02:00
parent fbb9c13263
commit 4b77ef6823

View File

@@ -426,9 +426,10 @@ x386_common_log(const char *fmt, ...)
int int
is_lock_legal(uint32_t fetchdat) is_lock_legal(uint32_t fetchdat)
{ {
int legal; int legal = 1;
fetch_dat_t fetch_dat;
if (is386) {
fetch_dat_t fetch_dat;
fetch_dat.fd = fetchdat; fetch_dat.fd = fetchdat;
legal = lock_legal[fetch_dat.b[0]]; legal = lock_legal[fetch_dat.b[0]];
@@ -463,6 +464,7 @@ is_lock_legal(uint32_t fetchdat)
legal = 0; legal = 0;
break; break;
} }
}
return legal; return legal;
} }