diff options
author | Evgenii Prokopiev <evgenii.prokopiev@syntacore.com> | 2024-10-02 11:44:36 +0300 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2024-10-30 11:22:07 +1000 |
commit | 5a60026cad4e9dba929cab4f63229e4b9110cf0a (patch) | |
tree | efe01472102cc9f6a5daf4623228f5bb5260e114 /hw | |
parent | 58d49b5895f2e0b5cfe4b2901bf24f3320b74f29 (diff) | |
download | qemu-5a60026cad4e9dba929cab4f63229e4b9110cf0a.zip qemu-5a60026cad4e9dba929cab4f63229e4b9110cf0a.tar.gz qemu-5a60026cad4e9dba929cab4f63229e4b9110cf0a.tar.bz2 |
target/riscv/csr.c: Fix an access to VXSAT
The register VXSAT should be RW only to the first bit.
The remaining bits should be 0.
The RISC-V Instruction Set Manual Volume I: Unprivileged Architecture
The vxsat CSR has a single read-write least-significant bit (vxsat[0])
that indicates if a fixed-point instruction has had to saturate an output
value to fit into a destination format. Bits vxsat[XLEN-1:1]
should be written as zeros.
Signed-off-by: Evgenii Prokopiev <evgenii.prokopiev@syntacore.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20241002084436.89347-1-evgenii.prokopiev@syntacore.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions