summaryrefslogtreecommitdiff
path: root/mips
diff options
context:
space:
mode:
authorRobert Norton2016-02-04 17:22:00 +0000
committerRobert Norton2016-02-04 17:22:00 +0000
commitf278ec8ca85ee5f757081509929ef9ae574ee437 (patch)
treecebb93435e67957d4496ac4bfc8a318d0d6fb77e /mips
parent9d767fe280e78765058baeca7fe899d4418f8d83 (diff)
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.
Diffstat (limited to 'mips')
-rw-r--r--mips/mips.sail4
1 files changed, 3 insertions, 1 deletions
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 *)