]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv/kvm: change KVM_REG_RISCV_FP_D to u64
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Fri, 8 Dec 2023 18:38:32 +0000 (15:38 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 27 Apr 2024 17:03:22 +0000 (20:03 +0300)
commit125b95d79e746cbab6b72683b3382dd372e38c61
tree9f5ad75314501742513bfdc969711ccfba78ee0a
parentbbdcc89678daa5cb131ef22a6cd41a5f7f9dcea9
target/riscv/kvm: change KVM_REG_RISCV_FP_D to u64

KVM_REG_RISCV_FP_D regs are always u64 size. Using kvm_riscv_reg_id() in
RISCV_FP_D_REG() ends up encoding the wrong size if we're running with
TARGET_RISCV32.

Create a new helper that returns a KVM ID with u64 size and use it with
RISCV_FP_D_REG().

Reported-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Message-ID: <20231208183835.2411523-3-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit 450bd6618fda3d2e2ab02b2fce1c79efd5b66084)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/riscv/kvm/kvm-cpu.c