From c4e3d0903e55f9054f8596df1beb3508406a1b9c Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 14 Sep 2018 00:38:31 +0200 Subject: [PATCH] Bugfix rck. --- mach/mips/libem/rck.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mach/mips/libem/rck.s b/mach/mips/libem/rck.s index 01eca7156..f6d6606a4 100644 --- a/mach/mips/libem/rck.s +++ b/mach/mips/libem/rck.s @@ -15,13 +15,15 @@ addiu sp, sp, 4 ! leave value on stack lw r5, 0(sp) ! r5 = value - lw at, 0(sp) ! at = lower bound + lw at, 0(r4) ! at = lower bound slt at, r5, at ! at = r5 < at bne at, zero, .trap_erange + nop - lw at, 4(sp) ! at = upper bound + lw at, 4(r4) ! at = upper bound slt at, at, r5 ! at = at < r5 bne at, zero, .trap_erange + nop jr ra nop