summaryrefslogtreecommitdiff
path: root/target-m68k/cpu.h
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2016-01-17 00:08:15 +0100
committerLaurent Vivier <laurent@vivier.eu>2016-10-25 20:54:47 +0200
commit2b04e85a3401e13cb19b1de197e6c211eaadca4c (patch)
tree854069aa048d4003144fc74d197592c52e602787 /target-m68k/cpu.h
parent7ef25cdd6cee4fa468d6cb913fa064a6689faf7d (diff)
downloadqemu-2b04e85a3401e13cb19b1de197e6c211eaadca4c.tar.gz
target-m68k: set PAGE_BITS to 12 for m68k
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-m68k/cpu.h')
-rw-r--r--target-m68k/cpu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h
index 133852a3a0..fa1d0278c0 100644
--- a/target-m68k/cpu.h
+++ b/target-m68k/cpu.h
@@ -255,8 +255,11 @@ void m68k_cpu_list(FILE *f, fprintf_function cpu_fprintf);
void register_m68k_insns (CPUM68KState *env);
#ifdef CONFIG_USER_ONLY
-/* Linux uses 8k pages. */
-#define TARGET_PAGE_BITS 13
+/* Coldfire Linux uses 8k pages
+ * and m68k linux uses 4k pages
+ * use the smaller one
+ */
+#define TARGET_PAGE_BITS 12
#else
/* Smallest TLB entry size is 1k. */
#define TARGET_PAGE_BITS 10