Re: [PATCH v4 07/33] linux-user/nios2: Trim target_pc_regs to sp and pc

2022-03-08 Thread Richard Henderson
On 3/8/22 00:00, Peter Maydell wrote: On Tue, 8 Mar 2022 at 07:20, Richard Henderson wrote: The only thing this struct is used for is passing startup values from elfload.c to the cpu. We do not need all registers to be represented, we do not need the kernel internal stack slots. The userland

Re: [PATCH v4 07/33] linux-user/nios2: Trim target_pc_regs to sp and pc

2022-03-08 Thread Peter Maydell
On Tue, 8 Mar 2022 at 07:20, Richard Henderson wrote: > > The only thing this struct is used for is passing startup values > from elfload.c to the cpu. We do not need all registers to be > represented, we do not need the kernel internal stack slots. > > The userland argc, argv, and envp values ar

[PATCH v4 07/33] linux-user/nios2: Trim target_pc_regs to sp and pc

2022-03-07 Thread Richard Henderson
The only thing this struct is used for is passing startup values from elfload.c to the cpu. We do not need all registers to be represented, we do not need the kernel internal stack slots. The userland argc, argv, and envp values are passed on the stack, so only SP and PC need updating. Signed-of