]> Git Repo - qemu.git/commit
linux-user: Tidy and enforce reserved_va initialization
authorRichard Henderson <[email protected]>
Thu, 5 Oct 2017 14:36:00 +0000 (10:36 -0400)
committerRiku Voipio <[email protected]>
Mon, 16 Oct 2017 13:00:56 +0000 (16:00 +0300)
commit18e80c55bb6ec17c05ec0ba717ec83933c2bfc07
treead7b346cfad273e9b252ac0ae82cdbc709a3931f
parentde258eb07db6cf893ef1bfad8c0cedc0b983db55
linux-user: Tidy and enforce reserved_va initialization

We had a check using TARGET_VIRT_ADDR_SPACE_BITS to make sure
that the allocation coming in from the command-line option was
not too large, but that didn't include target-specific knowledge
about other restrictions on user-space.

Remove several target-specific hacks in linux-user/main.c.

For MIPS and Nios, we can replace them with proper adjustments
to the respective target's TARGET_VIRT_ADDR_SPACE_BITS definition.

For ARM, we had no existing ifdef but I suspect that the current
default value of 0xf7000000 was chosen with this in mind.  Define
a workable value in linux-user/arm/, and also document why the
special case is required.

Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Message-Id: <20170708025030[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
linux-user/arm/target_cpu.h
linux-user/main.c
target/mips/mips-defs.h
target/nios2/cpu.h
This page took 0.024212 seconds and 4 git commands to generate.