diff options
Diffstat (limited to 'riscv/rocc.cc')
-rw-r--r-- | riscv/rocc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/rocc.cc b/riscv/rocc.cc index a4766d4..2354f9f 100644 --- a/riscv/rocc.cc +++ b/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); \ |