aboutsummaryrefslogtreecommitdiff
path: root/hw/mips
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2020-04-08 17:16:19 +0800
committerAleksandar Markovic <aleksandar.qemu.devel@gmail.com>2020-06-01 13:28:21 +0200
commita08d60bc6c2b6469368fff3d38dd5ddd16dd36be (patch)
tree4f0f4728f72c4e5a0a9678a251cdebfc815e0222 /hw/mips
parentee3863b9d414f0b4a59a88f2a79b496a99d4f6dd (diff)
hw/mips: fuloong2e: Set preferred page size to 16KB
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> Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> Message-Id: <1586337380-25217-2-git-send-email-chenhc@lemote.com>
Diffstat (limited to 'hw/mips')
-rw-r--r--hw/mips/fuloong2e.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/mips/fuloong2e.c b/hw/mips/fuloong2e.c
index f583c44b79..7a65166cf0 100644
--- a/hw/mips/fuloong2e.c
+++ b/hw/mips/fuloong2e.c
@@ -392,6 +392,7 @@ static void mips_fuloong2e_machine_init(MachineClass *mc)
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("Loongson-2E");
mc->default_ram_size = 256 * MiB;
mc->default_ram_id = "fuloong2e.ram";
+ mc->minimum_page_bits = 14;
}
DEFINE_MACHINE("fuloong2e", mips_fuloong2e_machine_init)