diff options
author | Andrew Waterman <andrew@sifive.com> | 2019-08-23 16:32:36 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-09-04 01:34:20 -0700 |
commit | dfae33056897b58eb98e36d23e0d00cfd57d4547 (patch) | |
tree | 4638e6483806ae0fb94595a2e5aab1ec7190143b /spike_main | |
parent | 750010dbfa51303fd52ae9d8be3cb597d111a43f (diff) | |
download | spike-dfae33056897b58eb98e36d23e0d00cfd57d4547.zip spike-dfae33056897b58eb98e36d23e0d00cfd57d4547.tar.gz spike-dfae33056897b58eb98e36d23e0d00cfd57d4547.tar.bz2 |
Fix c.fldsp/c.fsdsp disassembly bug
Diffstat (limited to 'spike_main')
-rw-r--r-- | spike_main/disasm.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spike_main/disasm.cc b/spike_main/disasm.cc index 37c9630..0dbdbb7 100644 --- a/spike_main/disasm.cc +++ b/spike_main/disasm.cc @@ -654,9 +654,9 @@ disassembler_t::disassembler_t(int xlen) DISASM_INSN("c.beqz", c_beqz, 0, {&rvc_rs1s, &rvc_branch_target}); DISASM_INSN("c.bnez", c_bnez, 0, {&rvc_rs1s, &rvc_branch_target}); DISASM_INSN("c.j", c_j, 0, {&rvc_jump_target}); - DISASM_INSN("c.fldsp", c_fldsp, 0, {&rvc_fp_rs2s, &rvc_ldsp_address}); + DISASM_INSN("c.fldsp", c_fldsp, 0, {&frd, &rvc_ldsp_address}); DISASM_INSN("c.fsd", c_fsd, 0, {&rvc_fp_rs2s, &rvc_ld_address}); - DISASM_INSN("c.fsdsp", c_fsdsp, 0, {&rvc_fp_rs2s, &rvc_sdsp_address}); + DISASM_INSN("c.fsdsp", c_fsdsp, 0, {&rvc_fp_rs2, &rvc_sdsp_address}); DISASM_INSN("vsetvli", vsetvli, 0, {&xrd, &xrs1, &v_vtype}); DISASM_INSN("vsetvl", vsetvl, 0, {&xrd, &xrs1, &xrs2}); |