diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-01-18 17:51:52 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-01-18 17:51:52 -0800 |
commit | 21ce327f5d60d6805b5d9328b68f7ad2c261a859 (patch) | |
tree | 22ee7ac3dfb4d00662ff6f0d1f057481efc67772 /riscv/insns/remu.h | |
parent | 5ddec097b858aafe783eb3aff551d00e9c8c8a37 (diff) | |
download | spike-21ce327f5d60d6805b5d9328b68f7ad2c261a859.zip spike-21ce327f5d60d6805b5d9328b68f7ad2c261a859.tar.gz spike-21ce327f5d60d6805b5d9328b68f7ad2c261a859.tar.bz2 |
[opcodes, sim, xcc] made *w insns illegal in RV32
now generic variants behave differently in RV32 and RV64.
Diffstat (limited to 'riscv/insns/remu.h')
-rw-r--r-- | riscv/insns/remu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/riscv/insns/remu.h b/riscv/insns/remu.h index 3b6c44f..04499ab 100644 --- a/riscv/insns/remu.h +++ b/riscv/insns/remu.h @@ -1,5 +1,4 @@ -require64; if(RS2 == 0) - RD = 0; + RD = RS1; else - RD = RS1 % RS2; + RD = sext_xprlen(RS1 % RS2); |