target/riscv: log guest errors when reserved bits are set in PTEs
authorjulia <midnight@trainwit.ch>
Mon, 3 Feb 2025 06:18:52 +0000 (17:18 +1100)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 4 Mar 2025 05:42:54 +0000 (15:42 +1000)
commit50df464f8e9ddcc5242c058728e12c299c59db02
tree4e5f05317fb148b8c234a3c12b2b60c7404c3145
parentbda6522e3f9002040fc223c12457b849328a1d39
target/riscv: log guest errors when reserved bits are set in PTEs

For instance, QEMUs newer than b6ecc63c569bb88c0fcadf79fb92bf4b88aefea8
would silently treat this akin to an unmapped page (as required by the
RISC-V spec, admittedly). However, not all hardware platforms do (e.g.
CVA6) which leads to an apparent QEMU bug.

Instead, log a guest error so that in future, incorrectly set up page
tables can be debugged without bisecting QEMU.

Signed-off-by: julia <midnight@trainwit.ch>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20250203061852.2931556-1-midnight@trainwit.ch>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c