Core: Fix EEmemSize

It's got desynced from the actual size of the EEVM_MemoryAllocMess
struct at some point.
This commit is contained in:
Ziemas 2025-09-09 10:01:23 +02:00 committed by lightningterror
parent 189374d19c
commit 1870193615
2 changed files with 6 additions and 2 deletions

View File

@ -22,11 +22,13 @@ namespace HostMemoryMap
// Main // Main
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// PS2 main memory, SPR, and ROMs (approximately 138.5MB, but we round up to 139MB for simplicity). // PS2 main memory, SPR, and ROMs (approximately 142MB, but we round up to 144MB for simplicity).
// Needs to be big enough to fit the EEVM_MemoryAllocMess struct
static constexpr u32 EEmemOffset = 0x00000000; static constexpr u32 EEmemOffset = 0x00000000;
static constexpr u32 EEmemSize = 0x8B00000; static constexpr u32 EEmemSize = 0x9000000;
// IOP main memory (2MB + 64K + 256b, rounded up to 3MB for simplicity). // IOP main memory (2MB + 64K + 256b, rounded up to 3MB for simplicity).
// Needs to be big enough to fit the IopVM_MemoryAllocMess struct
static constexpr u32 IOPmemOffset = EEmemOffset + EEmemSize; static constexpr u32 IOPmemOffset = EEmemOffset + EEmemSize;
static constexpr u32 IOPmemSize = 0x300000; static constexpr u32 IOPmemSize = 0x300000;

View File

@ -29,6 +29,7 @@ typedef u32 mem32_t;
typedef u64 mem64_t; typedef u64 mem64_t;
typedef u128 mem128_t; typedef u128 mem128_t;
// Needs to fit within EEmemSize of Memory.h
struct EEVM_MemoryAllocMess struct EEVM_MemoryAllocMess
{ {
u8 Main[Ps2MemSize::MainRam]; // Main memory (hard-wired to 32MB) u8 Main[Ps2MemSize::MainRam]; // Main memory (hard-wired to 32MB)
@ -47,6 +48,7 @@ struct EEVM_MemoryAllocMess
u8 ZeroWrite[_1mb]; u8 ZeroWrite[_1mb];
}; };
// Needs to fit within IOPmemSize of Memory.h
struct IopVM_MemoryAllocMess struct IopVM_MemoryAllocMess
{ {
u8 Main[Ps2MemSize::IopRam]; // Main memory (hard-wired to 2MB) u8 Main[Ps2MemSize::IopRam]; // Main memory (hard-wired to 2MB)