Skip to content

Commit

Permalink
More Ignore address in gpu (#16303)
Browse files Browse the repository at this point in the history
* More Ignore address 0 in gpu

Fix #16297

* Change to ignore bad memory access

* Update SoftGpu.cpp

---------

Co-authored-by: Henrik Rydgård <[email protected]>
  • Loading branch information
sum2012 and hrydgard authored Sep 18, 2024
1 parent fb80ad6 commit 0bce42c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPU/GPUCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,9 @@ void GPUCommon::Execute_Call(u32 op, u32 diff) {
const u32 target = gstate_c.getRelativeAddress(op & 0x00FFFFFC);
if (!Memory::IsValidAddress(target)) {
ERROR_LOG(Log::G3D, "CALL to illegal address %08x - ignoring! data=%06x", target, op & 0x00FFFFFF);
if (g_Config.bIgnoreBadMemAccess) {
return;
}
UpdateState(GPUSTATE_ERROR);
return;
}
Expand Down
3 changes: 3 additions & 0 deletions GPU/Software/SoftGpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,9 @@ void SoftGPU::Execute_Call(u32 op, u32 diff) {
const u32 target = gstate_c.getRelativeAddress(op & 0x00FFFFFC);
if (!Memory::IsValidAddress(target)) {
ERROR_LOG(Log::G3D, "CALL to illegal address %08x - ignoring! data=%06x", target, op & 0x00FFFFFF);
if (g_Config.bIgnoreBadMemAccess) {
return;
}
gpuState = GPUSTATE_ERROR;
downcount = 0;
return;
Expand Down

0 comments on commit 0bce42c

Please sign in to comment.