qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
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 2/3] mips/mips_fulong2e: Set preferred page size to 16KB
Date: Wed,  8 Apr 2020 17:16:19 +0800	[thread overview]
Message-ID: <1586337380-25217-2-git-send-email-chenhc@lemote.com> (raw)
In-Reply-To: <1586337380-25217-1-git-send-email-chenhc@lemote.com>

Loongson processor prefers 16KB page size in system emulator, so let's
define mc->minimum_page_bits to 14.

Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 hw/mips/mips_fulong2e.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c
index 5040afd..23897d7 100644
--- a/hw/mips/mips_fulong2e.c
+++ b/hw/mips/mips_fulong2e.c
@@ -399,6 +399,7 @@ static void mips_fulong2e_machine_init(MachineClass *mc)
     mc->default_cpu_type = MIPS_CPU_TYPE_NAME("Loongson-2E");
     mc->default_ram_size = 256 * MiB;
     mc->default_ram_id = "fulong2e.ram";
+    mc->minimum_page_bits = 14;
 }
 
 DEFINE_MACHINE("fulong2e", mips_fulong2e_machine_init)
-- 
2.7.0



  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 [PATCH 1/3] target/mips: Support variable page size Huacai Chen
2020-04-08  9:16 ` Huacai Chen [this message]
2020-05-13  7:56   ` [PATCH 2/3] mips/mips_fulong2e: Set preferred page size to 16KB 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-2-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).