linux-user: wrong TARGET_SI_PAD_SIZE value for some targets.
Fix TARGET_SI_PAD_SIZE calculation to match the way the kernel does it. Use different TARGET_SI_PREAMBLE_SIZE for 32-bit and 64-bit targets. Signed-off-by: Maxim Ostapenko <m.ostapenko@partner.samsung.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
55a1099603
commit
aa5e03d2aa
@ -655,7 +655,14 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
#define TARGET_SI_MAX_SIZE 128
|
||||
#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
|
||||
|
||||
#if TARGET_ABI_BITS == 32
|
||||
#define TARGET_SI_PREAMBLE_SIZE (3 * sizeof(int))
|
||||
#else
|
||||
#define TARGET_SI_PREAMBLE_SIZE (4 * sizeof(int))
|
||||
#endif
|
||||
|
||||
#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE - TARGET_SI_PREAMBLE_SIZE) / sizeof(int))
|
||||
|
||||
typedef struct target_siginfo {
|
||||
#ifdef TARGET_MIPS
|
||||
|
Loading…
Reference in New Issue
Block a user