* [Qemu-devel] [PATCH] qemu-armeb linux stat64 syscall fix
[not found] ` <20060907093811.GK15302@sd033.hel.movial.fi>
@ 2006-09-12 10:20 ` Claudio Scordino
0 siblings, 0 replies; only message in thread
From: Claudio Scordino @ 2006-09-12 10:20 UTC (permalink / raw)
To: qemu-devel; +Cc: fabio checconi, Michael Trimarchi
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
Hi all,
we had a problem compiling the linux kernel using for an
arm big endian target in the qemu-armeb environment.
The compilation stopped when executing the split-include utility during
the kernel compilation phase: split-include exited with an error of the
stat64 syscall, executed in the environment emulated by qemu.
Qemu seemed to ignore the fact that in big endian systems the fields
st_blocks and its padding are swapped (to allow future expansion of the
field,) so the fix consisted only in swapping the two fields (only in big
endian systems, of course.)
The attached patch should fix the problem.
Regards,
Michael, Fabio and Claudio
[-- Attachment #2: 44_armbe_stat64_linux.patch --]
[-- Type: text/plain, Size: 703 bytes --]
diff -ur qemu-0.8.1.orig/linux-user/syscall_defs.h qemu-0.8.1/linux-user/syscall_defs.h
--- qemu-0.8.1.orig/linux-user/syscall_defs.h 2006-09-07 21:49:22.000000000 +0000
+++ qemu-0.8.1/linux-user/syscall_defs.h 2006-09-07 21:51:10.000000000 +0000
@@ -914,8 +914,13 @@
long long st_size;
target_ulong st_blksize;
+#ifndef TARGET_WORDS_BIGENDIAN
target_ulong st_blocks; /* Number 512-byte blocks allocated. */
target_ulong __pad4; /* future possible st_blocks high bits */
+#else
+ target_ulong __pad4; /* future possible st_blocks high bits */
+ target_ulong st_blocks; /* Number 512-byte blocks allocated. */
+#endif
target_ulong target_st_atime;
target_ulong __pad5;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-12 10:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200609061224.06766.cloud.of.andor@gmail.com>
[not found] ` <44FF4D47.8050401@gandalf.sssup.it>
[not found] ` <20060907093811.GK15302@sd033.hel.movial.fi>
2006-09-12 10:20 ` [Qemu-devel] [PATCH] qemu-armeb linux stat64 syscall fix Claudio Scordino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).