Hotfix 2885: Condition on RVU (#2886)

Condition on RVU because you can have RVU with M mode but not RVS without RVU
This commit is contained in:
Guillaume Chauvon 2025-03-31 15:41:53 +02:00 committed by GitHub
parent 31dd1d232b
commit 2d3532e192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2570,7 +2570,7 @@ module csr_regfile
priv_lvl_o != riscv::PRIV_LVL_M && v_q)
? 1'b1
: 1'b0;
end else if (CVA6Cfg.RVS) begin
end else if (CVA6Cfg.RVU) begin
assign en_translation_o = (satp_mode_is_sv && priv_lvl_o != riscv::PRIV_LVL_M) ? 1'b1 : 1'b0;
assign en_g_translation_o = 1'b0;
end else begin