Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 154e224

Browse files
authored
Merge pull request #1673 from reicast/skmp/fix-android
Android: Disable FBCD til we marshal segfaults
2 parents 3fa71da + 91bb331 commit 154e224

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

libswirl/hw/sh4/dyna/blockmanager.cpp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,15 @@ void bm_CleanupDeletedBlocks()
9393
del_blocks.clear();
9494
}
9595

96-
// Takes RX pointer and returns a RW pointer
96+
// takes RX pointer and returns stale RBI
9797
RuntimeBlockInfo* bm_GetStaleBlock(void* dynarec_code)
9898
{
99-
void *dynarecrw = CC_RX2RW(dynarec_code);
100-
101-
bm_CleanupDeletedBlocks();
99+
100+
for (auto it = del_blocks.begin(); it != del_blocks.end(); it++)
101+
{
102+
if ((*it)->contains_code((u8*)dynarec_code))
103+
return (*it);
104+
}
102105

103106
return 0;
104107
}
@@ -343,6 +346,9 @@ bool bm_LockedWrite(u8* addy)
343346

344347
bool bm_RamPageHasData(u32 guest_addr, u32 len)
345348
{
349+
#if 1 // Disabled because of missing segfault marshaling
350+
return true;
351+
#else
346352
auto page_base = (guest_addr & RAM_MASK)/PAGE_SIZE;
347353
auto page_top = ((guest_addr + len - 1) & RAM_MASK)/PAGE_SIZE;
348354
@@ -354,6 +360,7 @@ bool bm_RamPageHasData(u32 guest_addr, u32 len)
354360
}
355361
356362
return rv;
363+
#endif
357364
}
358365

359366
#endif

0 commit comments

Comments
 (0)