Re: [PATCH v2 1/7] linux-user/nios2: Properly emulate EXCP_TRAP

2022-01-05 Thread Laurent Vivier
Le 21/12/2021 à 03:50, Richard Henderson a écrit : The real kernel has to load the instruction and extract the imm5 field; for qemu, modify the translator to do this. The use of R_AT for this in cpu_loop was a bug. Handle the other trap numbers as per the kernel's trap_table. Reviewed-by: Alex

Re: [PATCH v2 1/7] linux-user/nios2: Properly emulate EXCP_TRAP

2021-12-22 Thread Laurent Vivier
Le 21/12/2021 à 03:50, Richard Henderson a écrit : The real kernel has to load the instruction and extract the imm5 field; for qemu, modify the translator to do this. The use of R_AT for this in cpu_loop was a bug. Handle the other trap numbers as per the kernel's trap_table. Reviewed-by: Alex

[PATCH v2 1/7] linux-user/nios2: Properly emulate EXCP_TRAP

2021-12-20 Thread Richard Henderson
The real kernel has to load the instruction and extract the imm5 field; for qemu, modify the translator to do this. The use of R_AT for this in cpu_loop was a bug. Handle the other trap numbers as per the kernel's trap_table. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- targe