summary refs log tree commit diff stats
path: root/hw
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-03-08 14:58:40 -0800
committerAlistair Francis <alistair.francis@wdc.com>2025-03-19 16:42:09 +1000
commit1a010d22b7adecf0fb1c069e1e535af1aa51e9cf (patch)
treeed0ada7c4759ebed234e258263d0d36a02de2da9 /hw
parent4e9e2478dfd26480bbf50367a67b9be0edafef2b (diff)
downloadfocaccia-qemu-1a010d22b7adecf0fb1c069e1e535af1aa51e9cf.tar.gz
focaccia-qemu-1a010d22b7adecf0fb1c069e1e535af1aa51e9cf.zip
linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall
The third argument of the syscall contains the size of the
cpu mask in bytes, not bits.  Nor is the size rounded up to
a multiple of sizeof(abi_ulong).

Cc: qemu-stable@nongnu.org
Reported-by: Andreas Schwab <schwab@suse.de>
Fixes: 9e1c7d982d7 ("linux-user/riscv: Add syscall riscv_hwprobe")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250308225902.1208237-3-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions