From f06905130d7a055095c369eba7057cab1be683aa Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:13:03 -0600 Subject: [PATCH] fix typo --- src/device/exceptions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/exceptions.rs b/src/device/exceptions.rs index 14adacdb..42008f72 100644 --- a/src/device/exceptions.rs +++ b/src/device/exceptions.rs @@ -112,7 +112,7 @@ pub fn tlb_miss_exception( } break; } - if address & !3 >= i.start_odd && address & !3 <= i.start_odd { + if address & !3 >= i.start_odd && address & !3 <= i.end_odd { valid = i.v_odd != 0; if valid && access_type == device::memory::AccessType::Write && i.d_odd == 0 { device.cpu.cop0.regs[device::cop0::COP0_CAUSE_REG as usize] =