From d607efb5d27c931569dcb48ea56eef8b5959d379 Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Mon, 4 Feb 2019 20:04:56 +0700 Subject: r4000: size does matter (nw) --- src/devices/cpu/mips/r4000.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devices/cpu/mips/r4000.cpp b/src/devices/cpu/mips/r4000.cpp index 7fb28b10dce..b42180ae7e5 100644 --- a/src/devices/cpu/mips/r4000.cpp +++ b/src/devices/cpu/mips/r4000.cpp @@ -1610,15 +1610,15 @@ void r4000_base_device::cp0_update_timer(bool start) if (start || m_cp0_timer->enabled()) { u32 const count = (total_cycles() - m_cp0_timer_zero) / 2; - u64 const delta = m_cp0[CP0_Compare] - count; + u32 const delta = m_cp0[CP0_Compare] - count; - m_cp0_timer->adjust(cycles_to_attotime(delta * 2)); + m_cp0_timer->adjust(cycles_to_attotime(u64(delta) * 2)); } } TIMER_CALLBACK_MEMBER(r4000_base_device::cp0_timer_callback) { - set_input_line(5, ASSERT_LINE); + m_cp0[CP0_Cause] |= CAUSE_IPEX5; } void r4000_base_device::cp0_mode_check() @@ -2737,7 +2737,7 @@ r4000_base_device::translate_t r4000_base_device::translate(int intention, u64 & // remember the last-used tlb entry m_last[intention & TRANSLATE_TYPE_MASK] = index; - return (pfn & EL_C) == C_2 ? UNCACHED : CACHED; + return ((pfn & EL_C) == C_2) ? UNCACHED : CACHED; } // tlb miss, invalid entry, or a store to a non-dirty entry -- cgit v1.2.3