mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-2.13-pull-request' into staging
# gpg: Signature made Mon 14 May 2018 19:15:02 BST # gpg: using RSA key F30C38BD3F2FBE3C # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" # gpg: aka "Laurent Vivier <laurent@vivier.eu>" # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/linux-user-for-2.13-pull-request: linux-user: correctly align types in thunking code linux-user: fix UNAME_MACHINE for sparc/sparc64 linux-user: add sparc/sparc64 specific errno linux-user: fix conversion of flock/flock64 l_type field linux-user: update sparc/syscall_nr.h to linux header 4.16 linux-user: fix flock/flock64 padding linux-user: define correct fcntl() values for sparc Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
@@ -149,20 +149,32 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host)
|
||||
case TYPE_CHAR:
|
||||
return 1;
|
||||
case TYPE_SHORT:
|
||||
return 2;
|
||||
if (is_host) {
|
||||
return __alignof__(short);
|
||||
} else {
|
||||
return ABI_SHORT_ALIGNMENT;
|
||||
}
|
||||
case TYPE_INT:
|
||||
return 4;
|
||||
if (is_host) {
|
||||
return __alignof__(int);
|
||||
} else {
|
||||
return ABI_INT_ALIGNMENT;
|
||||
}
|
||||
case TYPE_LONGLONG:
|
||||
case TYPE_ULONGLONG:
|
||||
return 8;
|
||||
if (is_host) {
|
||||
return __alignof__(long long);
|
||||
} else {
|
||||
return ABI_LLONG_ALIGNMENT;
|
||||
}
|
||||
case TYPE_LONG:
|
||||
case TYPE_ULONG:
|
||||
case TYPE_PTRVOID:
|
||||
case TYPE_PTR:
|
||||
if (is_host) {
|
||||
return sizeof(void *);
|
||||
return __alignof__(long);
|
||||
} else {
|
||||
return TARGET_ABI_BITS / 8;
|
||||
return ABI_LONG_ALIGNMENT;
|
||||
}
|
||||
break;
|
||||
case TYPE_OLDDEVT:
|
||||
|
||||
Reference in New Issue
Block a user