Codeblock tree now includes both physical and virtual addresses into key. Fixes performance issues with Windows 3.1.
This commit is contained in:
parent
52fd357f3d
commit
a174a88c49
2 changed files with 13 additions and 8 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue