From f278ec8ca85ee5f757081509929ef9ae574ee437 Mon Sep 17 00:00:00 2001 From: Robert Norton Date: Thu, 4 Feb 2016 17:22:00 +0000 Subject: mips.sail: don't set HI and LO to undefined on MUL but just leave them as they were, allowing us to pass another test. --- mips/mips.sail | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mips/mips.sail b/mips/mips.sail index f89e1198..6cfc7e75 100644 --- a/mips/mips.sail +++ b/mips/mips.sail @@ -873,9 +873,11 @@ function clause execute (MUL(rs, rt, rd)) = undefined else EXTS(result[31..0]); - (* HI and LO are always undefined after MUL *) + (* HI and LO are technically undefined after MUL, but this causes problems with tests and + (potentially) context switch so just leave them alone HI := undefined; LO := undefined; + *) } (* MULT 32-bit multiply into HI/LO *) -- cgit v1.2.3