Flush memory->codeblock list heads on CPU reset - fixes "block->next->pc=0" errors on reset on some machines.
This commit is contained in:
parent
e590bd9ca2
commit
d79814692f
3 changed files with 16 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue