mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
target/mips: Support variable page size
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 <[email protected]> Signed-off-by: Huacai Chen <[email protected]> Reviewed-by: Aleksandar Markovic <[email protected]> Signed-off-by: Aleksandar Markovic <[email protected]> Message-Id: <[email protected]>
This commit is contained in:
1 parent
7e0896b0e1
commit
ee3863b9d4
1 file changed
+5
@@ -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
|
||||
Reference in new issue
Block a user