[tracer] Fix reporting of load/store data

Modify tracer to use the appropriate read/write masks when logging
load/store traffic from the Load Store Unit.

Signed-off-by: Adrian Lees <a.lees@lowrisc.org>
This commit is contained in:
Adrian Lees 2024-01-31 10:02:18 +00:00 committed by alees24
parent ea1a208f8d
commit 5a8a1a9993

View file

@ -136,10 +136,10 @@ module ibex_tracer (
if ((data_accessed & MEM) != 0) begin
$fwrite(fh, " PA:0x%08x", rvfi_mem_addr);
if (rvfi_mem_rmask != 4'b0000) begin
if (rvfi_mem_wmask != 4'b0000) begin
$fwrite(fh, " store:0x%08x", rvfi_mem_wdata);
end
if (rvfi_mem_wmask != 4'b0000) begin
if (rvfi_mem_rmask != 4'b0000) begin
$fwrite(fh, " load:0x%08x", rvfi_mem_rdata);
end
end