aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashanth Mundkur <prashanth.mundkur@gmail.com>2018-11-07 14:44:59 -0800
committerPrashanth Mundkur <prashanth.mundkur@gmail.com>2018-11-07 17:15:58 -0800
commit5444974754965c12089db58639ffc6eaa1ecdb12 (patch)
treed18d1a57418948007236a4c0b0c714af81438c0f
parent4b83274d7ff3cd58a608ee7db3db6847cb7140d3 (diff)
downloadsail-riscv-5444974754965c12089db58639ffc6eaa1ecdb12.zip
sail-riscv-5444974754965c12089db58639ffc6eaa1ecdb12.tar.gz
sail-riscv-5444974754965c12089db58639ffc6eaa1ecdb12.tar.bz2
RISC-V: fix assembly mappings for lr/sc.
-rw-r--r--riscv.sail4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv.sail b/riscv.sail
index 47d714f..f9945a4 100644
--- a/riscv.sail
+++ b/riscv.sail
@@ -811,7 +811,7 @@ function clause execute(LOADRES(aq, rl, rs1, width, rd)) =
}
mapping clause assembly = LOADRES(aq, rl, rs1, size, rd)
- <-> "lr" ^ maybe_aq(aq) ^ maybe_rl(rl) ^ size_mnemonic(size) ^ spc() ^ reg_name(rd) ^ sep() ^ reg_name(rs1)
+ <-> "lr." ^ size_mnemonic(size) ^ maybe_aq(aq) ^ maybe_rl(rl) ^ spc() ^ reg_name(rd) ^ sep() ^ reg_name(rs1)
/* ****************************************************************** */
union clause ast = STORECON : (bool, bool, regbits, regbits, word_width, regbits)
@@ -876,7 +876,7 @@ function clause execute (STORECON(aq, rl, rs2, rs1, width, rd)) = {
}
}
-mapping clause assembly = STORECON(aq, rl, rs2, rs1, size, rd) <-> "sc" ^ maybe_aq(aq) ^ maybe_rl(rl) ^ size_mnemonic(size) ^ spc() ^ reg_name(rd) ^ sep() ^ reg_name(rs1) ^ sep() ^ reg_name(rs2)
+mapping clause assembly = STORECON(aq, rl, rs2, rs1, size, rd) <-> "sc." ^ size_mnemonic(size) ^ maybe_aq(aq) ^ maybe_rl(rl) ^ spc() ^ reg_name(rd) ^ sep() ^ reg_name(rs1) ^ sep() ^ reg_name(rs2)
/* ****************************************************************** */
union clause ast = AMO : (amoop, bool, bool, regbits, regbits, word_width, regbits)