LOCK: It is sometimes legal when cpu_mod == 3, fixes hangs with Compaq Portable III 386 TEST.
This commit is contained in:
@@ -433,7 +433,7 @@ is_lock_legal(uint32_t fetchdat)
|
|||||||
|
|
||||||
legal = lock_legal[fetch_dat.b[0]];
|
legal = lock_legal[fetch_dat.b[0]];
|
||||||
if (legal == 1)
|
if (legal == 1)
|
||||||
legal = ((fetch_dat.b[1] >> 6) != 0x03); /* reg is illegal */
|
legal = 1; // ((fetch_dat.b[1] >> 6) != 0x03); /* reg is illegal */
|
||||||
else if (legal == 2) {
|
else if (legal == 2) {
|
||||||
legal = lock_legal_0f[fetch_dat.b[1]];
|
legal = lock_legal_0f[fetch_dat.b[1]];
|
||||||
if (legal == 1)
|
if (legal == 1)
|
||||||
|
@@ -738,9 +738,6 @@ opLOCK(uint32_t fetchdat)
|
|||||||
|
|
||||||
legal = is_lock_legal(fetchdat);
|
legal = is_lock_legal(fetchdat);
|
||||||
|
|
||||||
if (legal == 4)
|
|
||||||
pclog("PREFIX: F0 %08X\n", fetchdat);
|
|
||||||
|
|
||||||
ILLEGAL_ON(legal == 0);
|
ILLEGAL_ON(legal == 0);
|
||||||
|
|
||||||
CLOCK_CYCLES(4);
|
CLOCK_CYCLES(4);
|
||||||
|
Reference in New Issue
Block a user