From: Huacai Chen <chenhc@lemote.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Aleksandar Markovic" <aleksandar.qemu.devel@gmail.com>
Cc: Huacai Chen <chenhuacai@gmail.com>,
Huacai Chen <chenhc@lemote.com>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: [PATCH 1/3] target/mips: Support variable page size
Date: Wed, 8 Apr 2020 17:16:18 +0800 [thread overview]
Message-ID: <1586337380-25217-1-git-send-email-chenhc@lemote.com> (raw)
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
next reply other threads:[~2020-04-08 14:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-08 9:16 Huacai Chen [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1586337380-25217-1-git-send-email-chenhc@lemote.com \
--to=chenhc@lemote.com \
--cc=aleksandar.qemu.devel@gmail.com \
--cc=aurelien@aurel32.net \
--cc=chenhuacai@gmail.com \
--cc=f4bug@amsat.org \
--cc=jiaxun.yang@flygoat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).