summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2014-11-15 02:39:55 +0100
committer hap <happppp@users.noreply.github.com>2014-11-15 02:39:55 +0100
commitea3a86c04ea5a606ec30c90cbfec642c41e3cad3 (patch)
tree7ff767d3bce1c751221dd2a2901b7d1d8be0296d
parent493317356e5b8098071b611a6f9a6c8fcd690bcc (diff)
fix cache2 problem
-rw-r--r--src/emu/machine/pla.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/pla.c b/src/emu/machine/pla.c
index 1ff0d649877..1812d24ed1b 100644
--- a/src/emu/machine/pla.c
+++ b/src/emu/machine/pla.c
@@ -39,7 +39,7 @@ void pla_device::device_start()
{
assert(region() != NULL);
assert(m_terms < MAX_TERMS);
- assert(m_inputs <= 32 && m_outputs <= 32);
+ assert(m_inputs < 32 && m_outputs <= 32);
if (m_input_mask == 0)
m_input_mask = ((UINT64)1 << m_inputs) - 1;
@@ -51,7 +51,7 @@ void pla_device::device_start()
// initialize cache
m_cache2_ptr = 0;
for (int i = 0; i < CACHE2_SIZE; i++)
- m_cache2[i] = 0;
+ m_cache2[i] = 0x80000000;
m_cache_size = 0;
int csize = 1 << ((m_inputs > MAX_CACHE_BITS) ? MAX_CACHE_BITS : m_inputs);