summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-10-07 17:24:51 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-10-07 17:24:51 -0700
commitbe65e9699133b82853db3ecd2d79655d6f3970b2 (patch)
tree889829a044212b843848dc87414a8b5b22f5abc3 /Source/Core
parent6e3d140283499498524abc961ffb2765928f0acb (diff)
Memmap: Remove unused IO size field
This existed in the initial megacommit (though I don't know why) as IO_SIZE. It was used in Memmap's Init() to compute totalMemSize, but I don't know if it actually did anything then. That use was removed in 2d0f714546cba64ec9191c4e3e0b60351ad3e539, but the constant persisted until cc858c63b8d04c5ce407c7efd0ae8abc654e73a0, when it became a static variable.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/Memmap.cpp6
-rw-r--r--Source/Core/Core/HW/Memmap.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/Source/Core/Core/HW/Memmap.cpp b/Source/Core/Core/HW/Memmap.cpp
index e9b78f6383..1eb7ef629d 100644
--- a/Source/Core/Core/HW/Memmap.cpp
+++ b/Source/Core/Core/HW/Memmap.cpp
@@ -75,7 +75,6 @@ static u32 s_fakevmem_size;
static u32 s_fakevmem_mask;
static u32 s_L1_cache_size;
static u32 s_L1_cache_mask;
-static u32 s_io_size;
// s_exram_size is the amount allocated by the emulator, whereas s_exram_size_real
// is what gets used by emulated software. If using retail IOS, it will
// always be set to 64MB.
@@ -111,10 +110,6 @@ u32 GetL1CacheMask()
{
return s_L1_cache_mask;
}
-u32 GetIOSize()
-{
- return s_io_size;
-}
u32 GetExRamSizeReal()
{
return s_exram_size_real;
@@ -247,7 +242,6 @@ void Init()
s_fakevmem_mask = GetFakeVMemSize() - 1;
s_L1_cache_size = 0x00040000;
s_L1_cache_mask = GetL1CacheSize() - 1;
- s_io_size = 0x00010000;
s_exram_size_real = get_mem2_size();
s_exram_size = MathUtil::NextPowerOf2(GetExRamSizeReal());
s_exram_mask = GetExRamSize() - 1;
diff --git a/Source/Core/Core/HW/Memmap.h b/Source/Core/Core/HW/Memmap.h
index 32065f2053..9ff859cc64 100644
--- a/Source/Core/Core/HW/Memmap.h
+++ b/Source/Core/Core/HW/Memmap.h
@@ -45,7 +45,6 @@ u32 GetFakeVMemSize();
u32 GetFakeVMemMask();
u32 GetL1CacheSize();
u32 GetL1CacheMask();
-u32 GetIOSize();
u32 GetExRamSizeReal();
u32 GetExRamSize();
u32 GetExRamMask();