linux-user: use target_ulong
authorAlexander Graf <agraf@suse.de>
Tue, 9 Oct 2012 07:06:49 +0000 (09:06 +0200)
committerChanho Park <parkch98@gmail.com>
Tue, 9 Sep 2014 02:32:51 +0000 (11:32 +0900)
commit5920d12862fbdc72bcdcfa73bda8f8d9646a00d1
tree960c71f37e6d337535546eec77d88d29793bfda3
parentbfed0fb8893de151b7a7d465a044aab4c1e5e207
linux-user: use target_ulong

Linux syscalls pass pointers or data length or other information of that sort
to the kernel. This is all stuff you don't want to have sign extended.
Otherwise a host 64bit variable parameter with a size parameter will extend
it to a negative number, breaking lseek for example.

Pass syscall arguments as ulong always.

Signed-off-by: Alexander Graf <agraf@suse.de>
linux-user/qemu.h
linux-user/syscall.c