[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] target/mips: Support variable page size
From: |
Aleksandar Markovic |
Subject: |
[PULL 5/6] target/mips: Support variable page size |
Date: |
Mon, 1 Jun 2020 14:18:17 +0200 |
From: Huacai Chen <chenhc@lemote.com>
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>
Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Message-Id: <1586337380-25217-1-git-send-email-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.4
- [PULL 0/6] MIPS queue for June 1st, 2020, Aleksandar Markovic, 2020/06/01
- [PULL 2/6] configure: Add KVM target support for MIPS64, Aleksandar Markovic, 2020/06/01
- [PULL 4/6] target/mips: Add more CP0 register for save/restore, Aleksandar Markovic, 2020/06/01
- [PULL 3/6] hw/mips: Add CPU IRQ3 delivery for KVM, Aleksandar Markovic, 2020/06/01
- [PULL 1/6] tests/Makefile: Fix description of "make check", Aleksandar Markovic, 2020/06/01
- [PULL 5/6] target/mips: Support variable page size,
Aleksandar Markovic <=
- [PULL 6/6] hw/mips: fuloong2e: Set preferred page size to 16KB, Aleksandar Markovic, 2020/06/01
- Re: [PULL 0/6] MIPS queue for June 1st, 2020, Peter Maydell, 2020/06/01