Le 31/05/2018 à 06:18, Richard Henderson a écrit : > All of the existing code was boilerplate from elsewhere, > and would crash the guest upon the first signal. > > Signed-off-by: Richard Henderson <[email protected]> > --- > linux-user/openrisc/target_syscall.h | 23 +-- > linux-user/openrisc/signal.c | 210 +++++++++++---------------- > linux-user/signal.c | 2 +- > target/openrisc/cpu.c | 1 + > 4 files changed, 87 insertions(+), 149 deletions(-) > > diff --git a/linux-user/openrisc/target_syscall.h > b/linux-user/openrisc/target_syscall.h > index 03104f80af..f21fab3192 100644 > --- a/linux-user/openrisc/target_syscall.h > +++ b/linux-user/openrisc/target_syscall.h > @@ -2,26 +2,9 @@ > #define OPENRISC_TARGET_SYSCALL_H > > struct target_pt_regs { > - union { > - struct { > - /* Named registers */ > - uint32_t sr; /* Stored in place of r0 */ > - target_ulong sp; /* r1 */ > - }; > - struct { > - /* Old style */ > - target_ulong offset[2]; > - target_ulong gprs[30]; > - }; > - struct { > - /* New style */ > - target_ulong gpr[32]; > - }; > - }; > - target_ulong pc; > - target_ulong orig_gpr11; /* For restarting system calls */ > - uint32_t syscallno; /* Syscall number (used by strace) */ > - target_ulong dummy; /* Cheap alignment fix */ > + abi_ulong gpr[32]; > + abi_ulong pc; > + abi_ulong sr; > };
>From where is this coming from? In linux/arch/openrisc/include/asm/ptrace.h, we have the definition you remove. Thanks, Laurent
