qemu-pmb887x/linux-user
Laurent Vivier db3abd36e4 linux-user/sh4: allow full 32-bit address space
On real SH4 hardware, the address space is split between user mode
(U0, 0x00000000-0x7fffffff) and kernel mode (P1-P4, 0x80000000-0xffffffff),
so TARGET_VIRT_ADDR_SPACE_BITS was set to 31 for CONFIG_USER_ONLY.

However, qemu-user does not emulate the MMU, so this limit is not needed.
The only effect is to restrict reserved_va to 2 GB, causing OOM failures
for memory-intensive builds (e.g. webkit2gtk on Debian sh4 buildds).

Set TARGET_VIRT_ADDR_SPACE_BITS to 32 unconditionally, like most other
32-bit targets. Also fix the TASK_UNMAPPED_BASE macro to use 1ull instead
of 1u to avoid undefined behavior when shifting by 32.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
2026-07-28 11:12:37 +02:00
..
aarch64 target/arm: Enable FEAT_SME_MOP4 for -cpu max 2026-07-06 11:32:01 +01:00
alpha linux-user/alpha: populate AT_HWCAP from env->amask 2026-07-13 16:16:31 +02:00
arm linux-user: Use PGBRange for commpage 2026-07-10 14:38:10 -07:00
generic
hexagon target/hexagon: handle misaligned load/store cause codes in cpu_loop 2026-07-17 10:04:45 -07:00
hppa linux-user: Use PGBRange for commpage 2026-07-10 14:38:10 -07:00
i386
include
loongarch64 linux-user: Implement /proc/cpuinfo for loongarch cpus 2026-06-18 23:43:35 +02:00
m68k linux-user: Implement /proc/cpuinfo for m68k CPU 2026-06-18 23:43:35 +02:00
microblaze
mips
mips64
or1k
ppc linux-user: Implement /proc/cpuinfo for ppc cpus 2026-06-12 17:45:48 +02:00
riscv cpu: Introduce cpu_single_stepping() helper 2026-07-06 15:42:18 +02:00
s390x cpu: Introduce cpu_single_stepping() helper 2026-07-06 15:42:18 +02:00
sh4 linux-user/sh4: allow full 32-bit address space 2026-07-28 11:12:37 +02:00
sparc linux-user/sparc: Take pending signals in sparc64_set_context() 2026-07-18 23:47:33 +02:00
x86_64 exec/cpu-common.h: Avoid including unused exec/page-protection.h header 2026-06-18 14:27:21 +02:00
xtensa linux-user/xtensa: fix unlock of uninitialized frame pointer on sigreturn 2026-06-18 23:43:35 +02:00
elfload.c common-user: Move probe_guest_base from linux-user 2026-07-10 14:40:42 -07:00
errnos.c.inc
exit.c
fd-trans.c
fd-trans.h
flat.h
flatload.c common-user: Move probe_guest_base from linux-user 2026-07-10 14:40:42 -07:00
gen-vdso-elfn.c.inc
gen-vdso.c
ioctls.h
linux_loop.h
linuxload.c
loader.h
main.c common-user: Move guest_base, have_guest_base to probe-guest-base.c 2026-07-10 14:40:42 -07:00
meson.build
mmap.c common-user: Move mmap_min_addr from linux-user 2026-07-10 14:39:43 -07:00
plugin-api.c
qemu.h linux-user patches 2026-06-19 14:58:38 -04:00
semihost.c
signal-common.h
signal.c
socket.h
strace.c linux-user: fix guards for the fsmount(2) syscall series 2026-07-28 11:06:15 +02:00
strace.h
strace.list linux-user: fix guards for the fsmount(2) syscall series 2026-07-28 11:06:15 +02:00
syscall.c linux-user: fix guards for the fsmount(2) syscall series 2026-07-28 11:06:15 +02:00
syscall_defs.h linux-user: Guard local FUTEX_CMD_MASK definition 2026-07-26 15:10:59 +02:00
syscall_types.h
thunk.c
trace-events
trace.h
uaccess.c util/cutils: drop qemu_strnlen() in favor of strnlen() 2026-06-18 14:27:21 +02:00
uname.c
uname.h
user-internals.h common-user: Move probe_guest_base from linux-user 2026-07-10 14:40:42 -07:00
user-mmap.h
vm86.c