]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/riscv: Set vtype.vill on CPU reset
authorRob Bradford <rbradford@rivosinc.com>
Mon, 30 Sep 2024 16:52:57 +0000 (17:52 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 30 Oct 2024 01:22:08 +0000 (11:22 +1000)
commitf8c1f36a2e3dab4935e7c5690e578ac71765766b
treebbf0fef41f04b923bd063c9c5f869c61d2c1e4c9
parenta84be2baa9eca8bc500f866ad943b8f63dc99adf
target/riscv: Set vtype.vill on CPU reset

The RISC-V unprivileged specification "31.3.11. State of Vector
Extension at Reset" has a note that recommends vtype.vill be set on
reset as part of ensuring that the vector extension have a consistent
state at reset.

This change now makes QEMU consistent with Spike which sets vtype.vill
on reset.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240930165258.72258-1-rbradford@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c