icache: Fix instruction sent to log
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 16 Sep 2023 12:12:02 +0000 (22:12 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 16 Sep 2023 12:12:02 +0000 (22:12 +1000)
Log the instruction read from the icache, not the instruction (if any)
being written to the icache.

Fixes: 6db626d24547 ("icache: Log 36 bits of instruction rather than 32")
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
icache.vhdl

index 6383726cf455a64c8e098fef9b3da61de68ef5f9..e01eb3590d624be897781531a6b003690ab7d2e5 100644 (file)
@@ -625,7 +625,7 @@ begin
        end if;
         i_out.insn <= insn(31 downto 0);
         i_out.icode <= icode;
-        log_insn <= cache_wr_data(35 downto 0);
+        log_insn <= insn;
        i_out.valid <= r.hit_valid;
        i_out.nia <= r.hit_nia;
        i_out.stop_mark <= r.hit_smark;