linux-user/elfload: Set V in ELF_HWCAP for RISC-V
commit4333f0924c2f2ca8efaebaed8c24f55f77d8b013
authorNathan Egge <negge@xiph.org>
Thu, 3 Aug 2023 13:14:24 +0000 (3 09:14 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 6 Aug 2023 17:10:11 +0000 (6 10:10 -0700)
treeaa9c78b0e2a7c604ca42fe552568e665607e55a0
parent89e5b7935e92af6f3b4e4cdb19dfddef4e9dde36
linux-user/elfload: Set V in ELF_HWCAP for RISC-V

Set V bit for hwcap if misa is set.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1793
Signed-off-by: Nathan Egge <negge@xiph.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Tested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230803131424.40744-1-negge@xiph.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c