Statistics
| Branch: | Revision:

root / linux-user @ 95b33b2f

# Date Author Comment
95b33b2f 07/12/2011 02:38 pm Wesley W. Terpstra

mips: rlimit incorrectly converts values

Byte swap was applied in the wrong order with testing for
RLIM_INFINITY. On mips bigendian from an amd64 system this results in
infinity being misinterpretted as 2^31-1.

This is a serious bug because it causes setrlimit stack size to kill...

e6e5bd2d 07/12/2011 02:34 pm Wesley W. Terpstra

mips: null pointer deref should segfault

Dereferencing a null pointer causes an exception 0xC (EXCP_AdEL)
instead of EXCP_TLBL. This should also trigger a segfault.

Signed-off-by: Wesley W. Terpstra <>
Signed-off-by: Riku Voipio <>

7c2f6157 07/12/2011 02:33 pm Wesley W. Terpstra

mips: missing syscall returns wrong errno

Return -TARGET_ENOSYS instead of -ENOSYS from linux-user/main.c * Caused strange 'Level 2 synchronization messages' instead of
correctly reporting the syscall was missing. * Made glibc simply fail instead of using older syscalls...

053ebb27 07/12/2011 02:32 pm Wesley W. Terpstra

mips: sigaltstack args

The syscall sigaltstack takes two parameters, not zero. This patch
should have no impact as only values above 4 influence the runtime
behaviour. Nevertheless, it is wrong.

Signed-off-by: Wesley W. Terpstra <>
Signed-off-by: Riku Voipio <>

8f04eeb3 07/11/2011 04:35 pm Peter Maydell

linux-user/syscall.c: Enforce pselect6 sigset size restrictions

Enforce the same restriction on the size of the sigset passed to
pselect6 as the Linux kernel does. This is both correct and silences
a gcc 4.6 warning about a write-only variable.

Signed-off-by: Peter Maydell <>...

163a05a8 07/11/2011 04:34 pm Peter Maydell

linux-user: Implement prlimit64 syscall

Implement the prlimit64 syscall.

Slightly modified to apply upstream -Riku

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

d979e8eb 07/11/2011 04:12 pm Peter Maydell

linux-user: Add syscall numbers from kernel 2.6.39.2

Add syscall numbers for new syscall numbers; this brings us
into line with Linux 2.6.39.2.

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

12b81b71 07/11/2011 04:12 pm Cédric VINCENT

linux-user: Add support for even more FB ioctls

This patch was validated with programs from DirectFB-1.0 and
WebKit/DirectFB.

Signed-off-by: Cédric VINCENT <>
Cc: Riku Voipio <>
Signed-off-by: Riku Voipio <>

774750c0 07/11/2011 04:10 pm Cédric VINCENT

linux-user: Add support for more VT ioctls

DirectFB-1.0 uses at least two of the four added ioctls, and the two
others were added for completeness. This patch was validated with the
program "vlock -all/-new".

Signed-off-by: Cédric VINCENT <>...

e6fe18fb 07/11/2011 04:06 pm Cédric VINCENT

linux-user: Add support for KD...LED ioctls

DirectFB-1.0 uses at least one of the four added ioctls, and the three
others were added for completeness. This patch was validated with the
program "setleds" and the following Makefile:

SETLEDS_INIT  = setleds -v -num -caps -scroll...
1dfdcaa8 06/28/2011 09:57 pm Edgar E. Iglesias

user: Fix -d debug logging for usermode emulation

Signed-off-by: Edgar E. Iglesias <>

cd59dd87 06/27/2011 07:26 pm Anthony Liguori

Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging

2b41f10e 06/26/2011 09:25 pm Blue Swirl

Remove exec-all.h include directives

Most exec-all.h include directives are now useless, remove them.

Signed-off-by: Blue Swirl <>

bc088ba1 06/21/2011 08:30 pm Juan Quintela

linux-user: syscall should use sanitized arg1

Looking at the other architectures, we should be using "how" not "arg1".

Signed-off-by: Juan Quintela <>
[: remove unnecessary initialisation of how]
Signed-off-by: Peter Maydell <>...

e7730352 06/21/2011 08:30 pm Juan Quintela

flatload: end_code was only used in a debug message

Just unfold its definition in only use.

Signed-off-by: Juan Quintela <>
[: fixed typo in the debug code,
added parentheses to fix precedence issue]
Signed-off-by: Peter Maydell <>...

3002fa84 06/21/2011 08:30 pm Juan Quintela

flatload: memp was a write-only variable

Signed-off-by: Juan Quintela <>
Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

5945cfcb 06/21/2011 08:30 pm Peter Maydell

linux-user: Bump do_syscall() up to 8 syscall arguments

On 32 bit MIPS a few syscalls have 7 arguments, and so to call
them via NR_syscall the guest needs to be able to pass 8 arguments
to do_syscall(). Raise the number of arguments do_syscall() takes
accordingly....

2aec3a27 06/21/2011 08:30 pm Peter Maydell

linux-user/signal.c: Remove only-ever-set variable fpu_save_addr

Move the access of fpu_save into the commented out skeleton code for
restoring FPU registers on SPARC sigreturn, thus silencing a gcc
4.6 "variable set but never used" warning.
(This doesn't affect the calculation of 'err' because in fact...

c7b016ba 06/21/2011 08:30 pm Peter Maydell

linux-user/signal.c: Remove unused fenab

Remove fenab as it is only written, never used. Add a FIXME
comment about the discrepancy between our behaviour and that
of the Linux kernel for this routine.

Signed-off-by: Peter Maydell <>...

bfcedc57 06/21/2011 08:30 pm Riku Voipio

linux-user: Fix sync_file_range on 32bit mips

As noticed while looking at "Bump do_syscall() up to 8 syscall arguments"
patch, sync_file_range uses a pad argument on 32bit mips. Deal with it
by reading the correct arguments when on mips.

Signed-off-by: Riku Voipio <>

4d1de87c 06/21/2011 08:30 pm vincent

linux-user: Fix the computation of the requested heap size

There were several remaining bugs in the previous implementation of
do_brk():

1. the value of "new_alloc_size" was one page too large when the
requested brk was aligned on a host page boundary....
055e0906 06/21/2011 08:30 pm Mike Frysinger

linux-user: add pselect6 syscall support

Some architectures (like Blackfin) only implement pselect6 (and skip
select/newselect). So add support for it.

Signed-off-by: Mike Frysinger <>
Signed-off-by: Riku Voipio <>

14322bad 06/21/2011 08:30 pm Laurent ALFONSI

linux-user: Define AT_RANDOM to support target stack protection mechanism.

The dynamic linker from the GNU C library v2.10+ uses the ELF
auxiliary vector AT_RANDOM [1] as a pointer to 16 bytes with random
values to initialize the stack protection mechanism. Technically the...

331c23b5 06/21/2011 08:30 pm Juan Quintela

linuxload: id_change was a write only variable

Signed-off-by: Juan Quintela <>
Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

1add8698 06/21/2011 08:30 pm Juan Quintela

syscall: really return ret code

We assign ret with the error code, but then return 0 unconditionally.

Signed-off-by: Juan Quintela <>
Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

f3ed1f5d 06/21/2011 08:29 pm Peter Maydell

linux-user: Handle images where lowest vaddr is not page aligned

Fix a bug in the linux-user ELF loader code where it was not correctly
handling images where the lowest vaddr to be loaded was not page aligned.
The problem was that the code to probe for a suitable guest base address...

00faf08c 06/21/2011 08:29 pm Peter Maydell

linux-user: Don't use MAP_FIXED in do_brk()

Since mmap() with MAP_FIXED will map over the top of existing mappings,
it's a bad idea to use it to implement brk(), because brk() with a
large size is likely to overwrite important things like qemu itself
or the host libc. So we drop MAP_FIXED and handle "mapped but at...

b9475279 06/21/2011 08:28 pm Cédric VINCENT

linux-user: Fix the load of ELF files that have no "useful" symbol

This patch fixes a "double free()" due to "realloc(syms, 0)" in the
loader when the ELF file has no "useful" symbol, as with the following
example (compiled with "sh4-linux-gcc -nostdlib"):...

9a826d78 06/20/2011 05:00 pm Mike McCormack

Don't translate pointer when in restore_sigcontext

Fixes crash in i386 when user emulation base address is non-zero.

21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and status: signal 11

Signed-off-by: Mike McCormack <>...

c235d738 06/15/2011 07:51 pm Matthew Fernandez

Command line support for altering the log file location

Add command line support for logging to a location other than /tmp/qemu.log.

With logging enabled (command line option -d), the log is written to
the hard-coded path /tmp/qemu.log. This patch adds support for writing...

44829396 06/10/2011 11:21 pm Edgar E. Iglesias

Merge remote branch 'rth/axp-next' into alpha-merge

  • rth/axp-next: (26 commits)
    target-alpha: Implement TLB flush primitives.
    target-alpha: Use a fixed frequency for the RPCC in system mode.
    target-alpha: Trap for unassigned and unaligned addresses....
9bf0960a 06/08/2011 11:04 am Alexandre Raymond

Fix compilation warning due to missing header for sigaction (followup)

This patch removes all references to signal.h when qemu-common.h is included
as they become redundant.

Signed-off-by: Alexandre Raymond <>
Signed-off-by: Stefan Hajnoczi <>

129d8aa5 05/31/2011 08:18 pm Richard Henderson

target-alpha: Rationalize internal processor registers.

Delete all the code that tried to emulate the real IPRs of some
unnamed CPU. Replace those with just 3 slots that we can use to
communicate trap information between the helper functions that
signal exceptions and the OS trap handler....

07b6c13b 05/31/2011 08:18 pm Richard Henderson

target-alpha: Tidy exception constants.

There's no need to attempt to match EXCP_* values with PALcode entry
point offsets. Instead, compress all the values to make for more
efficient switch statements within QEMU.

We will be doing TLB fill within QEMU proper, not within the PALcode,...

05c8a1e4 05/23/2011 11:33 pm Aurelien Jarno

Merge branch 's390-next' of git://repo.or.cz/qemu/agraf

  • 's390-next' of git://repo.or.cz/qemu/agraf:
    s390x: complain when allocating ram fails
    s390x: fix memory detection for guests > 64GB
    s390x: change mapping base to allow guests > 2GB
    s390x: Fix debugging for unknown sigp order codes...
dcfd14b3 05/22/2011 01:47 pm Blue Swirl

Delete unused tb_invalidate_page_range

tb_invalidate_page_range() was intended to be used to invalidate an
area of a TB which the guest explicitly flushes from i-cache. However,
QEMU detects writes to code areas where TBs have been generated, so
his has never been useful....

a4c075f1 05/20/2011 06:35 pm Ulrich Hecht

s390x: s390x-linux-user support

This patch adds support for running s390x binaries in the linux-user emulation
code.

Signed-off-by: Ulrich Hecht <>
Signed-off-by: Alexander Graf <>

67bd9ede 05/08/2011 12:59 pm Stefan Weil

linux-user: Replace deprecated function

Function bzero is deprecated, so replace it by function memset.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

5ba18547 05/08/2011 12:59 pm Stefan Weil

Fix spelling in comments (intruction -> instruction)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

1301f322 05/08/2011 12:02 pm Stefan Weil

Fix typos in comments (neccessary -> necessary)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

8186e783 05/08/2011 12:02 pm Stefan Weil

Fix typo in comment (truely -> truly)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

0c58751c 05/08/2011 12:02 pm Stefan Weil

Fix typo in comment (dieing -> dying)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

6f11f013 05/02/2011 10:00 am Stefan Weil

linux-user: Fix compilation for "old" linux versions

Debian Lenny and other installations with older linux versions
failed to compile linux-user because some CLONE_xxx macros are
undefined.

Signed-off-by: Stefan Weil <>
Signed-off-by: Riku Voipio <>

e95d3bf0 05/02/2011 10:00 am Mike McCormack

Fix buffer overrun in sched_getaffinity

Zeroing of the cpu array should start from &cpus[kernel_ret]
not &cpus[num_zeros_to_fill].

This fixes a crash in EFL's edje_cc running under qemu-arm.

Signed-off-by: Mike McCormack <>
Reviewed-by: Stefan Hajnoczi <>...

cd18f05e 05/02/2011 10:00 am Mike McCormack

Don't zero out buffer in sched_getaffinity

The kernel doesn't fill the buffer provided to sched_getaffinity
with zero bytes, so neither should QEMU.

Signed-off-by: Mike McCormack <>
Reviewed-by: Stefan Hajnoczi <>...

86fcd946 04/26/2011 10:15 am Laurent Vivier

linux-user: add ioctl(SIOCGIWNAME, ...) support.

Allow to run properly following program from linux-user:

/* cc -o wifi wifi.c */

#include &lt;stdio.h&gt;
#include &lt;sys/ioctl.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;linux/wireless.h&gt;
#include &lt;netinet/in.h&gt;...
42a39fbe 04/26/2011 10:15 am Alexander Graf

linux-user: add s390x to llseek list

We keep a list of host architectures that do llseek with the same
syscall as lseek. S390x is one of them, so let's add it to the list.

Original-patch-by: Ulrich Hecht <>
Signed-off-by: Alexander Graf <>...

0c866a7e 04/26/2011 10:15 am Riku Voipio

linux-user: untie syscalls from UID16

Quite a number of uid/gid related syscalls are only defined on systems
with USE_UID16 defined. This is apperently based on the idea that these
system calls would never be called on non-UID16 systems. Make these
syscalls available for all architectures that define them....

05098a93 04/26/2011 10:15 am Riku Voipio

[v2] linux-user: bigger default stack

PTHREAD_STACK_MIN (16KB) is somewhat inadequate for a new stack for new
QEMU threads. Set new limit to 256K which should be enough, yet doesn't
increase memory pressure significantly.

Signed-off-by: Riku Voipio <>...

608e5592 04/26/2011 10:15 am Laurent Vivier

linux-user: improve traces

Add trace details for getpid(), kill(), _llseek(), rt_sigaction(),
rt_sigprocmask(), clone().

Signed-off-by: Laurent Vivier <>
Signed-off-by: Riku Voipio <>

059c2f2c 04/26/2011 10:15 am Laurent Vivier

linux-user: convert ioctl(SIOCGIFCONF, ...) result.

The result needs to be converted as it is stored in an array of struct
ifreq and sizeof(struct ifreq) differs according to target and host
alignment rules.

This patch allows to execute correctly the following program on arm...

7cb4db8f 04/25/2011 11:15 pm Peter Maydell

linux-user/arm/nwfpe: rename REG_PC to ARM_REG_PC

The REG_PC constant used in the ARM nwfpe code is fine in the kernel
but when used in qemu can clash with a definition in the host system
include files (in particular on Ubuntu Lucid SPARC, including signal.h...

211315fb 04/17/2011 09:32 pm Aurelien Jarno

softfloat: rename float*_eq() into float*_eq_quiet()

float*_eq functions have a different semantics than other comparison
functions. Fix that by first renaming float*_quiet() into float*_eq_quiet().

Note that it is purely mechanical, and the behaviour should be unchanged....

d2fbca94 04/12/2011 09:49 pm Guan Xuetao

unicore32: necessary modifications for other files to support unicore32

Signed-off-by: Guan Xuetao <>
Signed-off-by: Blue Swirl <>

8b5d487d 04/12/2011 09:48 pm Guan Xuetao

unicore32: add necessry headers in linux-user/unicore32 for unicore32 support

Signed-off-by: Guan Xuetao <>
Signed-off-by: Blue Swirl <>

2e42d52d 04/12/2011 12:57 am Edgar E. Iglesias

microblaze: Correct ec mask in debug print

Signed-off-by: Edgar E. Iglesias <>

30cb4cde 03/22/2011 08:46 am Peter Maydell

linux-user: Fix unlock_user() call in return from poll()

Correct the broken attempt to calculate the third argument
to unlock_user() in the code path which unlocked the pollfd
array on return from poll() and ppoll() emulation. (This
only caused a problem if unlock_user() wasn't a no-op, eg...

0c1592d9 03/06/2011 08:06 pm Peter Maydell

linux-user: Fix large seeks by 32 bit guest on 64 bit host

When emulating a 32 bit Linux user-mode program on a 64 bit target
we implement the llseek syscall in terms of lseek. Correct a bug
which meant we were silently casting the result of host lseek()...

4e655712 03/04/2011 12:33 am Peter Maydell

linux-user: fix compile failure if !CONFIG_USE_GUEST_BASE

If CONFIG_USE_GUEST_BASE is not defined, gcc complains:
linux-user/mmap.c:235: error: comparison of unsigned expression >= 0 is always true

because RESERVED_VA is #defined to 0. Since mmap_find_vma_reserved()...

4de596cb 02/17/2011 11:46 am Laurent Vivier

linux-user: add rmdir() strace

Signed-off-by: Laurent Vivier <>
Signed-off-by: Riku Voipio <>

d2ee72a5 02/17/2011 11:46 am Laurent Vivier

linux-user: in linux-user/strace.c, tswap() is useless

Syscall parameters are already swapped by the caller.

This patch removes useless tswap() from strace.c

$ QEMU_STRACE=1 chroot /m68k mknod myramdisk b 1 1
with tswap()
...
29944 mknod("myramdisk",026630200000) = 0...

3b6edd16 02/17/2011 11:46 am Peter Maydell

linux-user: Support the epoll syscalls

Support the epoll family of syscalls: epoll_create(), epoll_create1(),
epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1()
and epoll_pwait() are later additions, so we have to test separately
in configure for their presence....

80f5ce75 02/17/2011 11:46 am Laurent Vivier

linux-user: correct core dump format

This patch allows to really use the core dumped by qemu with guest
architecture tools.

- it adds a missing bswap_phdr() for the program headers
of memory regions.

"objdump -x" sample:

BEFORE:

0x1000000 off 0x00200000 vaddr 0x00000400 paddr 0x00000000 align 2**21...

005e1a0a 02/10/2011 09:18 pm Peter Maydell

linux-user/arm: fix compilation failures using softfloat's struct types

Add uses of the float32/float64 boxing and unboxing macros so that
the ARM linux-user targets will compile with USE_SOFTFLOAT_STRUCT_TYPES
enabled.

Signed-off-by: Peter Maydell <>...

1af02e83 02/09/2011 10:33 am Mike Frysinger

linux-user/elfload: add FDPIC support

Signed-off-by: Mike Frysinger <>
Signed-off-by: Riku Voipio <>

d8035d4c 02/09/2011 10:33 am Mike Frysinger

linux-user: add ppoll syscall support

Some architectures (like Blackfin) only implement ppoll (and skip poll).
So add support for it using existing poll code.

Reviewed-by: Peter Maydell <>
Signed-off-by: Mike Frysinger <>...

906c1b8e 02/09/2011 10:33 am Mike Frysinger

linux-user: decode MAP_{UNINITIALIZED,EXECUTABLE} in strace

Signed-off-by: Mike Frysinger <>
Signed-off-by: Riku Voipio <>

82a39595 02/09/2011 10:33 am Mike Frysinger

linux-user/FLAT: fix auto-stack sizing

The current auto-stack sizing works like it does on a NOMMU system; the
problem is that this only works if the envp/argv arrays are fairly slim.
On a desktop system, this is rarely the case, and can easily blow past...

c3109ba1 02/09/2011 10:33 am Mike Frysinger

linux-user/FLAT: allow targets to override FLAT processing

This brings flatload.c more in line with the current Linux FLAT loader
which allows targets to handle various FLAT aspects in their own way.
For the common behavior, the new functions get stubbed out....

737de1d1 02/09/2011 10:33 am Mike Frysinger

linux-user: implement sched_{g,s}etaffinity

Signed-off-by: Mike Frysinger <>
Signed-off-by: Riku Voipio <>

8d9016c0 02/09/2011 10:33 am Mike Frysinger

linux-user: fix build errors for mmap2-only ports

The current print_mmap func is only enabled when the target supports the
mmap syscall, but both mmap and mmap2 syscalls use it. This leads to a
build failure when the target supports mmap2 but not mmap.
...

898b1beb 02/09/2011 10:33 am Martin Mohring

linux-user: fix for loopmount ioctl

In case a chrooted build uses XEN or KVM, a looped mount needs to be done to setup the chroot.
The ioctl for loop mount works correctly for arm, mips, ppc32 and sh4, so its now activated.

Signed-off-by: Riku Voipio <>

6672b0b2 02/09/2011 10:33 am Peter Maydell

linux-user: Add support for -version option

Add support to the linux-user qemu for the -version command line
option, bringing it into line with the system emulation qemu.

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

8d79de6e 02/09/2011 10:33 am Stefan Weil

linux-user: Fix possible realloc memory leak

Extract from "man realloc":
"If realloc() fails the original block is left untouched;
it is not freed or moved."

Fix a possible memory leak (reported by cppcheck).

Cc: Riku Voipio <>
Signed-off-by: Stefan Weil <>...

73160d95 02/09/2011 10:33 am Mike Frysinger

linux-user: fix sizeof handling for getsockopt

Signed-off-by: Mike Frysinger <>
Signed-off-by: Riku Voipio <>

e321c34a 02/01/2011 07:03 pm Peter Maydell

linux-user: avoid gcc array overrun warning for sparc

Suppress a gcc array bounds overrun warning when filling in the SPARC
signal frame by adjusting our definition of the structure so that the
fp and callers_pc membes are part of the ins[] array rather than...

64b85a8f 01/23/2011 06:21 pm Blue Swirl

Delete useless 'extern' qualifiers for functions

'extern' qualifier is useless for function declarations. Delete
them.

Signed-off-by: Blue Swirl <>

964413d9 01/14/2011 09:39 pm Peter Maydell

linux-user: ARM: clear the IT bits when invoking a signal handler

When invoking a signal handler for an ARM target, make sure the IT
bits in the CPSR are cleared. (This would otherwise cause incorrect
execution if the IT state was non-zero when an exception occured....

dace20dc 01/12/2011 01:06 am Peter Maydell

linux-user: Add configure check for linux/fiemap.h and IOC_FS_FIEMAP

Add a configure check for the existence of linux/fiemap.h and the
IOC_FS_FIEMAP ioctl. This fixes a compilation failure on Linux
systems which don't have that header file.

Signed-off-by: Peter Maydell <>...

67af42ac 01/07/2011 06:20 pm Wolfgang Schildbach

Remove dead code for ARM semihosting commandline handling

There are some bits in the code which were used to store the commandline for
the semihosting call. These bits are now write-only and can be removed.

Signed-off-by: Wolfgang Schildbach <>...

3ebe80c2 01/07/2011 05:38 pm Peter Maydell

linux-user: Fix incorrect NaN detection in ARM nwfpe emulation

The code in the linux-user ARM nwfpe emulation was incorrectly
checking only for quiet NaNs when it should have been checking
for any kind of NaN. This is probably because the code in
question was taken from the Linux kernel, whose copy of the...

285da2b9 01/07/2011 05:20 pm Peter Maydell

linux-user: Implement FS_IOC_FIEMAP ioctl

Implement the FS_IOC_FIEMAP ioctl using the new support for
custom handling of ioctls; this is needed because the struct
that is passed includes a variable-length array.

Signed-off-by: Peter Maydell <>...

d2ef05bb 01/07/2011 05:20 pm Peter Maydell

linux-user: Support ioctls whose parameter size is not constant

Some ioctls (for example FS_IOC_FIEMAP) use structures whose size is
not constant. The generic argument conversion code in do_ioctl()
cannot handle this, so add support for implementing a special-case...

c727f47d 01/07/2011 05:13 pm Peter Maydell

linux-user: Implement sync_file_range{,2} syscalls

Implement the missing syscalls sync_file_range and sync_file_range2.
The latter in particular is used by newer versions of apt on Ubuntu
for ARM.

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

18569871 01/02/2011 12:15 pm Peter Maydell

softfloat: Rename float*_is_nan() functions to float*_is_quiet_nan()

The softfloat functions float*_is_nan() were badly misnamed,
because they return true only for quiet NaNs, not for all NaNs.
Rename them to float*_is_quiet_nan() to more accurately reflect...

2c9adbda 12/07/2010 05:37 pm Peter Maydell

ARM: fix ldrexd/strexd

Correct ldrexd and strexd code to always read and write the
high word of the 64-bit value from addr+4.
Also make ldrexd and strexd agree that for a 64 bit value the
address in env->exclusive_addr is that of the low word.

This fixes the issues reported in...

b2e7aab2 12/03/2010 03:10 pm Martin Mohring

linux-user: fix mips and ppc to use UID16

Signed-off-by: Martin Mohring <>
Signed-off-by: Jan-Simon Möller <>
Signed-off-by: Riku Voipio <>

f3b974cd 12/03/2010 03:09 pm Jamie Lentin

linux-user: Translate getsockopt level option

n setsockopt, the socket level options are translated to the hosts'
architecture before the real syscall is called, e.g.
TARGET_SO_TYPE -> SO_TYPE. This patch does the same with getsockopt.

Tested on a x86 host emulating MIPS. Without it:-...

5f0b7c88 12/03/2010 03:09 pm Peter Maydell

ARM: linux-user: Correct size of padding in target_ucontext_v2

The padding in the target_ucontext_v2 is defined by the size of
the target's sigset_t type, not the host's. (This bug only causes
problems when we start using the uc_regspace[] array to expose...

0d871bdb 12/03/2010 03:09 pm Peter Maydell

ARM: linux-user: Expose VFP registers to signal handlers

For ARM linux-user mode signal handlers, fill in the ucontext with
VFP register contents in the same way that the kernel does. We only
do this for v2 format sigframe (2.6.12 and above); this is actually...

5f9099d9 12/03/2010 03:09 pm Peter Maydell

ARM: linux-user: Restore VFP state from ucontext on sigreturn

Restore the VFP registers from the ucontext on return from a signal
handler in linux-user mode. This means that signal handlers cannot
accidentally corrupt the interrupted code's VFP state, and allows...

08e11256 12/03/2010 03:09 pm Peter Maydell

ARM: linux-user: Expose iWMMXT registers to signal handlers

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

a59d69da 12/03/2010 03:09 pm Peter Maydell

ARM: linux-user: Restore iWMMXT state from ucontext on sigreturn

Signed-off-by: Peter Maydell <>
Signed-off-by: Riku Voipio <>

9190749f 12/03/2010 03:09 pm Riku Voipio

linux-user: fix compiler error on nptl

Some compilers detect that new_stack isnt used after dd75d784

Signed-off-by: Riku Voipio <>

c65ffe6d 12/03/2010 03:09 pm amateur

linux-user: mmap_reserve() not controlled by RESERVED_VA

mmap_reserve() should be called only when RESERVED_VA is enabled.
Otherwise, unmaped virtual address space will never be reusable. This
bug will exhaust virtual address space in extreme conditions....

48e15fc2 12/03/2010 03:09 pm Nathan Froyd

linux-user: fix memory leaks with NPTL emulation

Running programs that create large numbers of threads, such as this
snippet from libstdc++'s pthread7-rope.cc:

const int max_thread_count = 4;
const int max_loop_count = 10000;
...
for (int j = 0; j < max_loop_count; j++)...
bee70008 12/03/2010 03:09 pm Peter Maydell

linux-user: remove unnecessary local from __get_user(), __put_user()

Remove an unnecessary local variable from the _get_user() and
_put_user() macros. This avoids confusing compilation failures
if the name of the local variable ('size') happens to be the...

f711df67 11/23/2010 11:04 am Richard Henderson

microblaze: target-ify target_ucontext

Rename the members of target_ucontext so that they don't conflict
with possible host macros for ucontext members. This has already
been done for the other targets.

Signed-off-by: Richard Henderson <>...

e0c8a796 10/05/2010 09:53 pm Stefan Weil

linux-user: Fix typo m86k -> m68k

Replace m86k_sim_stat by m68k_sim_stat.

Cc: Riku Voipio <>
Signed-off-by: Stefan Weil <>

f66724c9 10/05/2010 09:53 pm Stefan Weil

Add new user mode option -ignore-environment

An empty environment is sometimes useful in user mode.
The new option provides it for linux-user and bsd-user
(darwin-user still has no environment related options).

The patch also adds the documentation for other...