Skip to content

Commit

Permalink
carried over missing DMA max address estimation to the fix-up loop
Browse files Browse the repository at this point in the history
This fixes reserved RDP and CPU op-codes in Zelda MM due to wrong RDRAM address limitation calculations from the RSP.  _WIN32 builds were not affected by this issue (due to the preprocessor disabling the analysis) and thus remain unaffected by this commit.
  • Loading branch information
Iconoclast committed Mar 22, 2018
1 parent 1117663 commit f74f987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module.c
Expand Up @@ -266,8 +266,8 @@ EXPORT void CALL InitiateRSP(RSP_INFO Rsp_Info, pu32 CycleCount)
SR[at] += DRAM[SR[ra]];
}
for (SR[at] = 0; SR[at] < 31; SR[at]++) {
su_max_address = (su_max_address & ~1) >> 1;
if (su_max_address == 0)
SR[ra] = (SR[ra] & ~1) >> 1;
if (SR[ra] == 0)
break;
}
su_max_address = (1 << SR[at]) - 1;
Expand Down

0 comments on commit f74f987

Please sign in to comment.