rv_add in store
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Oct 2018 05:28:16 +0000 (06:28 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Oct 2018 05:28:16 +0000 (06:28 +0100)
riscv/insns/sb.h
riscv/insns/sd.h
riscv/insns/sw.h

index 8729c2d47f46f5884e4d88ea4cb95e2e0a49c54f..ad656cf6c793040e9b0bc411db23d11c9c51058f 100644 (file)
@@ -1 +1 @@
-MMU.store_uint8(RS1 + insn.s_imm(), RS2);
+MMU.store_uint8(rv_add(RS1, insn.s_imm()), RS2);
index 664deb2c95ae5d0ec40a99f1b66d86ea8526c036..df56fbe46f22268fe75ab654e2f714eca322286f 100644 (file)
@@ -1,2 +1,2 @@
 require_rv64;
-MMU.store_uint64(RS1 + insn.s_imm(), RS2);
+MMU.store_uint64(rv_add(RS1, insn.s_imm()), RS2);
index aa5ead372e57b31785dc1a2a1ebc681197660869..32c28519d918c3a5f725f5d7959616b133d0359f 100644 (file)
@@ -1 +1 @@
-MMU.store_uint32(RS1 + insn.s_imm(), RS2);
+MMU.store_uint32(rv_add(RS1, insn.s_imm()), RS2);