Added recompiler block tree to x86-64 recompiler. Fixed return value in codeblock_tree_find() that could cause GCC to generate bad code.
This commit is contained in:
parent
36bb949126
commit
14df80109b
2 changed files with 7 additions and 1 deletions
|
|
@ -65,12 +65,14 @@ static inline codeblock_t *codeblock_tree_find(uint32_t phys)
|
|||
while (block)
|
||||
{
|
||||
if (phys == block->phys)
|
||||
return block;
|
||||
break;
|
||||
else if (phys < block->phys)
|
||||
block = block->left;
|
||||
else
|
||||
block = block->right;
|
||||
}
|
||||
|
||||
return block;
|
||||
}
|
||||
|
||||
static inline void codeblock_tree_add(codeblock_t *new_block)
|
||||
|
|
|
|||
Loading…
Reference in a new issue