Re: [PATCH] linux-user/elfload: Implement ELF_HWCAP for RISC-V

2021-06-04 Thread Palmer Dabbelt
On Fri, 04 Jun 2021 08:30:30 PDT (-0700), richard.hender...@linaro.org wrote: On 6/3/21 11:33 PM, Kito Cheng wrote: RISC-V define the hwcap as same as content of misa, but it only take lower 26-bits. As far as I can see linux only passes IMAFDC, not all 26 bits. We decided to play it safe

Re: [PATCH] linux-user/elfload: Implement ELF_HWCAP for RISC-V

2021-06-04 Thread Richard Henderson
On 6/3/21 11:33 PM, Kito Cheng wrote: RISC-V define the hwcap as same as content of misa, but it only take lower 26-bits. As far as I can see linux only passes IMAFDC, not all 26 bits. r~

[PATCH] linux-user/elfload: Implement ELF_HWCAP for RISC-V

2021-06-04 Thread Kito Cheng
RISC-V define the hwcap as same as content of misa, but it only take lower 26-bits. Signed-off-by: Kito Cheng --- linux-user/elfload.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 17ab06f612..41b9ef72ea 100644 ---