qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] target/mips: Support variable page size
@ 2020-04-08  9:16 Huacai Chen
  2020-04-08  9:16 ` [PATCH 2/3] mips/mips_fulong2e: Set preferred page size to 16KB Huacai Chen
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Huacai Chen @ 2020-04-08  9:16 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, Aleksandar Markovic
  Cc: Huacai Chen, Huacai Chen, Jiaxun Yang, qemu-devel, Aurelien Jarno

Traditionally, MIPS use 4KB page size, but Loongson prefer 16KB page
size in system emulator. So, let's define TARGET_PAGE_BITS_VARY and
TARGET_PAGE_BITS_MIN to support variable page size.

Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 target/mips/cpu-param.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/target/mips/cpu-param.h b/target/mips/cpu-param.h
index 308660d..9c4a6ea 100644
--- a/target/mips/cpu-param.h
+++ b/target/mips/cpu-param.h
@@ -23,7 +23,12 @@
 #  define TARGET_VIRT_ADDR_SPACE_BITS 32
 #endif
 #endif
+#ifdef CONFIG_USER_ONLY
 #define TARGET_PAGE_BITS 12
+#else
+#define TARGET_PAGE_BITS_VARY
+#define TARGET_PAGE_BITS_MIN 12
+#endif
 #define NB_MMU_MODES 4
 
 #endif
-- 
2.7.0



^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-06-01 10:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-08  9:16 [PATCH 1/3] target/mips: Support variable page size Huacai Chen
2020-04-08  9:16 ` [PATCH 2/3] mips/mips_fulong2e: Set preferred page size to 16KB Huacai Chen
2020-05-13  7:56   ` Aleksandar Markovic
2020-05-13  8:25     ` Huacai Chen
2020-05-13 10:47       ` Aleksandar Markovic
2020-06-01 10:18   ` Aleksandar Markovic
2020-04-08  9:16 ` [PATCH 3/3] MAINTAINERS: Add myself as fulong2e co-maintainer Huacai Chen
2020-04-08 15:30   ` Aleksandar Markovic
2020-04-09  2:17     ` Huacai Chen
2020-04-09  2:38       ` Jiaxun Yang
2020-04-10 14:37         ` Aleksandar Markovic
2020-04-13 22:06           ` Philippe Mathieu-Daudé
2020-05-14 20:56   ` Aleksandar Markovic
2020-05-13  7:45 ` [PATCH 1/3] target/mips: Support variable page size Aleksandar Markovic
2020-06-01  9:00 ` Aleksandar Markovic
2020-06-01 10:21 ` Aleksandar Markovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).