mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2 drc, tiny optimization for x86
This commit is contained in:
parent
b106e5c72b
commit
75aba9cc65
1 changed files with 4 additions and 0 deletions
|
@ -2661,6 +2661,10 @@ static int emit_get_rbase_and_offs(SH2 *sh2, sh2_reg_e r, int rmode, s32 *offs)
|
|||
} else {
|
||||
// known fixed host address
|
||||
la = split_address(la + ((a + *offs) & mask), omask, offs);
|
||||
if (la == 0) {
|
||||
la = *offs;
|
||||
*offs = 0;
|
||||
}
|
||||
hr = rcache_get_tmp();
|
||||
emith_move_r_ptr_imm(hr, la);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue