diff options
| author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2025-05-28 15:44:05 -0300 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2025-07-04 21:09:48 +1000 |
| commit | a429f9304d54e9a44773b753d0844204b4b3b22f (patch) | |
| tree | e065f79854bf5ae7938470b0e399c5202d7f28ac /rust/qemu-api-macros/src | |
| parent | 148499b343a9aac62c5f5d55617a1c317127e2e3 (diff) | |
| download | focaccia-qemu-a429f9304d54e9a44773b753d0844204b4b3b22f.tar.gz focaccia-qemu-a429f9304d54e9a44773b753d0844204b4b3b22f.zip | |
target/riscv/tcg: restrict satp_mode changes in cpu_set_profile
We're changing 'mmu' to true regardless of whether the profile is
being enabled or not, and at the same time we're changing satp_mode to
profile->enabled.
This will promote a situation where we'll set mmu=on without a virtual
memory mode, which is a mistake.
Only touch 'mmu' and satp_mode if the profile is being enabled.
Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Fixes: 55398025e7 ("target/riscv: add satp_mode profile support")
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Message-ID: <20250528184407.1451983-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'rust/qemu-api-macros/src')
0 files changed, 0 insertions, 0 deletions