Re: [Qemu-devel] [PATCH v5 11/23] RISC-V Linux User Emulation

2018-02-08 Thread Richard Henderson
On 02/07/2018 05:28 PM, Michael Clark wrote: > +/* not RISC-V exception codes - this is for qemu user-mode */ > +#define QEMU_USER_EXCP_FAULT 0xd Any reason to define this instead of using RISCV_EXCP_LOAD_ADDR_MIS/ACCESS_FAULT? Otherwise this looks fine. Reviewed-by: Richard Hende

[Qemu-devel] [PATCH v5 11/23] RISC-V Linux User Emulation

2018-02-07 Thread Michael Clark
Implementation of linux user emulation for RISC-V. Signed-off-by: Michael Clark --- linux-user/elfload.c | 22 +++ linux-user/main.c | 97 + linux-user/riscv/syscall_nr.h | 287 ++ linux-user/riscv/target_cpu.h