From 4aed15540d42bde2c93bce2a18aa0152ed92b2e6 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Mon, 20 Mar 2023 01:31:49 +0000 Subject: [PATCH] Fix destination register for final uop of c.popretz --- hdl/hazard3_instr_decompress.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdl/hazard3_instr_decompress.v b/hdl/hazard3_instr_decompress.v index cc3e4b7..c80f604 100644 --- a/hdl/hazard3_instr_decompress.v +++ b/hdl/hazard3_instr_decompress.v @@ -357,7 +357,7 @@ end else begin: instr_decompress end else if (uop_ctr == 4'hd) begin in_uop_seq = 1'b1; uop_ctr_nxt = uop_ctr + 4'h1; - instr_out = `RVOPC_NOZ_ADDI | rfmt_rd(5'd8); // li a0, 0 + instr_out = `RVOPC_NOZ_ADDI | rfmt_rd(5'd10); // li a0, 0 end else if (uop_ctr == 4'he) begin in_uop_seq = 1'b1; uop_atomic = 1'b1;