Skip to content

Commit

Permalink
linux-user/sh4: Reduce TARGET_VIRT_ADDR_SPACE_BITS to 31
Browse files Browse the repository at this point in the history
The real kernel has TASK_SIZE as 0x7c000000, due to quirks with
a couple of SH parts.  But nominally user-space is limited to 2GB.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170708025030.15845-4-rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
  • Loading branch information
rth7680 authored and Riku Voipio committed Oct 16, 2017
1 parent 18e80c5 commit cc1b396
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion target/sh4/cpu.h
Expand Up @@ -45,7 +45,11 @@
#define TARGET_PAGE_BITS 12 /* 4k XXXXX */

#define TARGET_PHYS_ADDR_SPACE_BITS 32
#define TARGET_VIRT_ADDR_SPACE_BITS 32
#ifdef CONFIG_USER_ONLY
# define TARGET_VIRT_ADDR_SPACE_BITS 31
#else
# define TARGET_VIRT_ADDR_SPACE_BITS 32
#endif

#define SR_MD 30
#define SR_RB 29
Expand Down

0 comments on commit cc1b396

Please sign in to comment.