arch-riscv: Remove warning message in senvcfg setMiscReg

Previously, a warning would be printed when the WPRI bits
in the senvcfg register were written to. The other registers
do not print warnings for this, so the warning is being
removed.
This commit is contained in:
Erin Le
2024-12-06 10:36:54 -08:00
committed by Bobby R. Bruce
parent e6b931213f
commit 4559bafaa6

View File

@@ -797,12 +797,7 @@ ISA::setMiscReg(RegIndex idx, RegVal val)
val);
}
if ((wpri_mask & val) != 0) {
warn("Ignoring write to WPRI bit(s) in senvcfg CSR.\n"
"The attempted write was:\n %" PRIu64 "\n", val);
} else {
setMiscRegNoEffect(idx, val);
}
setMiscRegNoEffect(idx, val & ~wpri_mask);
}
break;
case MISCREG_TSELECT: