Skip to content

Commit 105c61a

Browse files
committed
ns32082: fix level two page table validity bug
1 parent 30cd73d commit 105c61a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/devices/machine/ns32082.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ void ns32082_device::device_reset()
165165
void ns32082_device::state_add(device_state_interface &parent, int &index)
166166
{
167167
parent.state_add(index++, "MSR", m_msr).formatstr("%08X");
168+
parent.state_add(index++, "PTB0", m_ptb[0]).formatstr("%08X");
169+
parent.state_add(index++, "PTB1", m_ptb[1]).formatstr("%08X");
170+
parent.state_add(index++, "EIA", m_eia).formatstr("%08X");
168171
}
169172

170173
u16 ns32082_device::slow_status(int *icount)
@@ -468,7 +471,7 @@ ns32082_device::translate_result ns32082_device::translate(address_space &space,
468471
if (m_state == RDVAL || m_state == WRVAL)
469472
{
470473
m_state = STATUS;
471-
if (pte1 & PTE_V)
474+
if (pte2 & PTE_V)
472475
m_status |= SLAVE_F;
473476

474477
return CANCEL;

src/devices/machine/ns32382.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ ns32382_device::translate_result ns32382_device::translate(address_space &space,
406406
if (m_state == RDVAL || m_state == WRVAL)
407407
{
408408
m_state = STATUS;
409-
if (pte1 & PTE_V)
409+
if (pte2 & PTE_V)
410410
m_status |= SLAVE_F;
411411

412412
return CANCEL;

0 commit comments

Comments
 (0)