Browse Source

Fix bug where xs2 was not being properly respected.

confprec
Stephen Twigg 13 years ago
parent
commit
658188c92b
  1. 2
      riscv/rocc.cc

2
riscv/rocc.cc

@ -15,7 +15,7 @@ union rocc_insn_union_t
rocc_insn_union_t u; \
u.i = insn; \
reg_t xs1 = u.r.xs1 ? RS1 : -1; \
reg_t xs2 = u.r.xs1 ? RS2 : -1; \
reg_t xs2 = u.r.xs2 ? RS2 : -1; \
reg_t xd = rocc->custom##n(u.r, xs1, xs2); \
if (u.r.xd) \
WRITE_RD(xd); \

Loading…
Cancel
Save