Skip to content

Commit

Permalink
Remove unneeded test, instruction fetch accesses are always even.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioni committed Sep 16, 2016
1 parent d1adae0 commit cf3d815
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions cpummu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,19 +734,17 @@ uae_u32 REGPARAM2 mmu_get_ilong_unaligned(uaecptr addr)
{
uae_u32 res;

if (likely(!(addr & 1))) {
res = (uae_u32)mmu_get_iword(addr, sz_long) << 16;
SAVE_EXCEPTION;
TRY(prb) {
res |= mmu_get_iword(addr + 2, sz_long);
RESTORE_EXCEPTION;
}
CATCH(prb) {
RESTORE_EXCEPTION;
misalignednotfirst(addr);
THROW_AGAIN(prb);
} ENDTRY
res = (uae_u32)mmu_get_iword(addr, sz_long) << 16;
SAVE_EXCEPTION;
TRY(prb) {
res |= mmu_get_iword(addr + 2, sz_long);
RESTORE_EXCEPTION;
}
CATCH(prb) {
RESTORE_EXCEPTION;
misalignednotfirst(addr);
THROW_AGAIN(prb);
} ENDTRY
return res;
}

Expand Down

0 comments on commit cf3d815

Please sign in to comment.