Flush memory->codeblock list heads on CPU reset - fixes "block->next->pc=0" errors on reset on some machines.

This commit is contained in:
TomW 2015-07-12 14:53:03 +01:00
commit d79814692f
3 changed files with 16 additions and 0 deletions

View file

@ -86,6 +86,7 @@ void codegen_reset()
{
memset(codeblock, 0, BLOCK_SIZE * sizeof(codeblock_t));
memset(codeblock_hash, 0, HASH_SIZE * sizeof(codeblock_t *));
mem_reset_page_blocks();
}
void dump_block()