Codeblock tree now includes both physical and virtual addresses into key. Fixes performance issues with Windows 3.1.

This commit is contained in:
SarahW 2016-11-08 21:30:48 +00:00
commit a174a88c49
2 changed files with 13 additions and 8 deletions

View file

@ -1309,7 +1309,7 @@ void exec386_dynarec(int cycs)
if (page->code_present_mask & mask)
{
/*Walk page tree to see if we find the correct block*/
codeblock_t *new_block = codeblock_tree_find(phys_addr);
codeblock_t *new_block = codeblock_tree_find(phys_addr, cs);
if (new_block)
{
valid_block = (new_block->pc == cs + cpu_state.pc) && (new_block->_cs == cs) &&