Attempted revert back to resetx86() with a mem.c fix.

This commit is contained in:
OBattler
2021-04-04 08:17:02 +02:00
parent 32205e10b8
commit 39f98cd063
2 changed files with 3 additions and 1 deletions

View File

@@ -1059,7 +1059,7 @@ write_output(atkbd_t *dev, uint8_t val)
if ((dev->output_port ^ val) & 0x01) { /*Reset*/
if (! (val & 0x01)) {
/* Pin 0 selected. */
softresetx86(); /*Pulse reset!*/
resetx86(); /*Pulse reset!*/
cpu_set_edx();
}
}

View File

@@ -2861,9 +2861,11 @@ mem_reset_page_blocks(void)
#ifdef USE_NEW_DYNAREC
pages[c].block = BLOCK_INVALID;
pages[c].block_2 = BLOCK_INVALID;
pages[c].head = BLOCK_INVALID;
#else
pages[c].block[0] = pages[c].block[1] = pages[c].block[2] = pages[c].block[3] = NULL;
pages[c].block_2[0] = pages[c].block_2[1] = pages[c].block_2[2] = pages[c].block_2[3] = NULL;
pages[c].head = NULL;
#endif
}
}