[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] mips/mips_fulong2e: Set preferred page size to 16KB
From: |
Huacai Chen |
Subject: |
[PATCH 2/3] mips/mips_fulong2e: Set preferred page size to 16KB |
Date: |
Wed, 8 Apr 2020 17:16:19 +0800 |
Loongson processor prefers 16KB page size in system emulator, so let's
define mc->minimum_page_bits to 14.
Cc: Jiaxun Yang <address@hidden>
Signed-off-by: Huacai Chen <address@hidden>
---
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