diff options
author | Laurent Vivier <laurent@vivier.eu> | 2011-02-13 23:37:34 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@nokia.com> | 2011-02-17 11:46:34 +0200 |
commit | c2e3dee6e03527baf8698698cce76b1a3174969a (patch) | |
tree | 40bea1193141b00fba2e0e7827932a9a0861a2f5 /.gitignore | |
parent | linux-user: Support the epoll syscalls (diff) | |
download | qemu-kvm-c2e3dee6e03527baf8698698cce76b1a3174969a.tar.gz qemu-kvm-c2e3dee6e03527baf8698698cce76b1a3174969a.tar.bz2 qemu-kvm-c2e3dee6e03527baf8698698cce76b1a3174969a.zip |
linux-user: Define target alignment size
Datatype alignment can be found using following application:
int main(void)
{
printf("alignof(short) %ld\n", __alignof__(short));
printf("alignof(int) %ld\n", __alignof__(int));
printf("alignof(long) %ld\n", __alignof__(long));
printf("alignof(long long) %ld\n", __alignof__(long long));
}
This patch includes following alignments:
i386
alignof(short) 2
alignof(int) 4
alignof(long) 4
alignof(long long) 8
x86_64
alignof(short) 2
alignof(int) 4
alignof(long) 8
alignof(long long) 8
arm
alignof(short) 2
alignof(int) 4
alignof(long) 4
alignof(long long) 4
m68k (680x0)
alignof(short) 2
alignof(int) 2
alignof(long) 2
alignof(long long) 2
mips
alignof(short) 2
alignof(int) 4
alignof(long) 4
alignof(long long) 8
ppc
alignof(short) 2
alignof(int) 4
alignof(long) 4
alignof(long long) 8
for other targets, use by default (2,4,4,8).
Please, update for your favorite target...
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions