]> xenbits.xensource.com Git - qemu-xen.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)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 10 Jan 2024 08:47:46 +0000 (18:47 +1000)
commit450bd6618fda3d2e2ab02b2fce1c79efd5b66084
tree41913eedc04c722bfceb10a256b4dd7fb4eb305b
parent49c211ffca00fdf7c0c29072c224e88527a14838
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>
target/riscv/kvm/kvm-cpu.c