From 658188c92b337c85a472f6de8067518a2e95de7d Mon Sep 17 00:00:00 2001 From: Stephen Twigg Date: Tue, 15 Oct 2013 00:21:00 -0700 Subject: [PATCH] Fix bug where xs2 was not being properly respected. --- riscv/rocc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- 2.30.2