At first I was simply going to add TARGET_SH to the existing set of defines that trigger a 31-bit address space. But then I realized that one could create non-working va configurations from the command-line.
r~ Richard Henderson (3): tcg: Fix off-by-one in assert in page_set_flags linux-user: Tidy and enforce reserved_va initialization linux-user/sh4: Reduce TARGET_VIRT_ADDR_SPACE_BITS to 31 linux-user/arm/target_cpu.h | 4 ++++ target/mips/mips-defs.h | 6 +++++- target/nios2/cpu.h | 6 +++++- target/sh4/cpu.h | 6 +++++- accel/tcg/translate-all.c | 2 +- linux-user/main.c | 38 +++++++++++++++++++++++++------------- 6 files changed, 45 insertions(+), 17 deletions(-) -- 2.9.4