summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/psx/psx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/psx/psx.c')
-rw-r--r--src/emu/cpu/psx/psx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/cpu/psx/psx.c b/src/emu/cpu/psx/psx.c
index c8876b79fe8..a83df1b7298 100644
--- a/src/emu/cpu/psx/psx.c
+++ b/src/emu/cpu/psx/psx.c
@@ -1384,6 +1384,11 @@ void psxcpu_device::update_rom_config()
UINT32 rom_size = m_rom->bytes();
UINT8 *pointer = m_rom->base();
+ if( rom_size > max_window_size )
+ {
+ rom_size = max_window_size;
+ }
+
assert( window_size != 0 );
int start = 0;