From: Christopher Celio Date: Wed, 29 Jan 2014 01:06:27 +0000 (-0800) Subject: Disasm now translates xor x0,x0,x0 as a machine-generated bubble ("-"). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0346522aa6ca2a91f2d32f824646febc6dff1fc8;p=riscv-isa-sim.git 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. --- 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);