Skip to content

Commit

Permalink
wt_dcache_buffer: Avoid out-of-range user signal access
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Oct 24, 2024
1 parent 0a3f0aa commit d3691e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/cache_subsystem/wt_dcache_wbuffer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -592,13 +592,9 @@ module wt_dcache_wbuffer
wbuffer_d[wr_ptr].valid[k] = 1'b1;
wbuffer_d[wr_ptr].dirty[k] = 1'b1;
wbuffer_d[wr_ptr].data[k*8+:8] = req_port_i.data_wdata[k*8+:8];
if (CVA6Cfg.DATA_USER_EN) begin
wbuffer_d[wr_ptr].user[k*8+:8] = req_port_i.data_wuser[k*8+:8];
end else begin
wbuffer_d[wr_ptr].user[k*8+:8] = '0;
end
end
end
wbuffer_d[wr_ptr].user = CVA6Cfg.DATA_USER_EN ? req_port_i.data_wuser : '0;
end
end
end
Expand Down

0 comments on commit d3691e3

Please sign in to comment.