summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/psx
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2013-05-16 20:45:37 +0000
committer smf- <smf-@users.noreply.github.com>2013-05-16 20:45:37 +0000
commit13009dbacea8275f05a64bf4819b0b11218778b9 (patch)
tree2746c58f1ebef114822f142896ae828cd46aeb1c /src/emu/cpu/psx
parent8102587e024e08ab9f083afb7b55bd1966a6d843 (diff)
Don't map more than 4mb of rom as it will overwrite ram. Only causes a problem for mrdrilr2 because the bios is part of a much larger rom, none of the other drivers have a region large enough to cause a problem. (nw)
Diffstat (limited to 'src/emu/cpu/psx')
-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;