qemu/target/nios2
Richard Henderson 18e80c55bb 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 <rth@twiddle.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20170708025030.15845-3-rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2017-10-16 16:00:56 +03:00
..
cpu.c nios2: replace cpu_nios2_init() with cpu_generic_init() 2017-09-01 11:54:24 -03:00
cpu.h linux-user: Tidy and enforce reserved_va initialization 2017-10-16 16:00:56 +03:00
helper.c nios2: Add architecture emulation support 2017-01-24 13:10:35 -08:00
helper.h nios2: Add architecture emulation support 2017-01-24 13:10:35 -08:00
Makefile.objs nios2: Add architecture emulation support 2017-01-24 13:10:35 -08:00
mmu.c nios2: Add architecture emulation support 2017-01-24 13:10:35 -08:00
mmu.h nios2: Add architecture emulation support 2017-01-24 13:10:35 -08:00
monitor.c nios2: Add architecture emulation support 2017-01-24 13:10:35 -08:00
op_helper.c target/nios2: take BQL around interrupt check 2017-03-14 13:26:37 +01:00
translate.c target: [tcg] Use a generic enum for DISAS_ values 2017-09-06 08:06:47 -07:00