iR5900: Don't limit block sizes to 16 bits

This commit is contained in:
TellowKrinkle 2023-03-18 18:22:28 -05:00 committed by refractionpcsx2
parent e91aabc843
commit f39e856fee
2 changed files with 4 additions and 5 deletions

View File

@ -32,10 +32,10 @@ struct BASEBLOCK
// extra block info (only valid for start of fn)
struct BASEBLOCKEX
{
u32 startpc;
uptr fnptr;
u16 size; // The size in dwords (equivalent to the number of instructions)
u16 x86size; // The size in byte of the translated x86 instructions
u32 startpc;
u32 size; // The size in dwords (equivalent to the number of instructions)
u32 x86size; // The size in byte of the translated x86 instructions
#ifdef PCSX2_DEVBUILD
// Could be useful to instrument the block

View File

@ -2672,8 +2672,7 @@ StartRecomp:
pxAssert(xGetPtr() < recMem->GetPtrEnd());
pxAssert(xGetPtr() - recPtr < _64kb);
s_pCurBlockEx->x86size = xGetPtr() - recPtr;
s_pCurBlockEx->x86size = static_cast<u32>(xGetPtr() - recPtr);
#if 0
// Example: Dump both x86/EE code