aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2014-01-28 17:06:27 -0800
committerChristopher Celio <celio@eecs.berkeley.edu>2014-01-28 17:06:27 -0800
commit0346522aa6ca2a91f2d32f824646febc6dff1fc8 (patch)
treefa18cf27f63dffbdfa322a8ab13fa2ecfa84600b
parent9a9df0230ff3b0eba855d1184079806855b70ede (diff)
downloadriscv-isa-sim-0346522aa6ca2a91f2d32f824646febc6dff1fc8.zip
riscv-isa-sim-0346522aa6ca2a91f2d32f824646febc6dff1fc8.tar.gz
riscv-isa-sim-0346522aa6ca2a91f2d32f824646febc6dff1fc8.tar.bz2
Disasm now translates xor x0,x0,x0 as a machine-generated bubble ("-").
It is very convenient for pipeline trace viewing to differentiate between compiler NOPs and pipeline bubbles.
-rw-r--r--spike/disasm.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/spike/disasm.cc b/spike/disasm.cc
index 31e4068..e4e7315 100644
--- a/spike/disasm.cc
+++ b/spike/disasm.cc
@@ -247,6 +247,7 @@ disassembler_t::disassembler_t()
DEFINE_ITYPE(jalr);
add_insn(new disasm_insn_t("nop", match_addi, mask_addi | mask_rd | mask_rs1 | mask_imm, {}));
+ add_insn(new disasm_insn_t(" - ", match_xor, mask_xor | mask_rd | mask_rs1 | mask_rs2, {})); // for machine-generated bubbles
DEFINE_I0TYPE("li", addi);
DEFINE_I1TYPE("move", addi);
DEFINE_ITYPE(addi);