]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/arm/imx8mp-evk: Provide some defaults matching real hardware
authorBernhard Beschow <shentey@gmail.com>
Wed, 14 Jan 2026 21:32:26 +0000 (22:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Jan 2026 11:23:30 +0000 (11:23 +0000)
Having four CPUs and 6 GiB of RAM matches real hardware. Fix the machine
defaults to make its use more ergonomic and less error-prone.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-id: 20260114213227.3812-2-shentey@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
docs/system/arm/imx8mp-evk.rst
hw/arm/imx8mp-evk.c

index 75c8fbd366817dd1253960c527ada864f6f4e69c..79600cf39a53ec1074867a818ccc055817bbc839 100644 (file)
@@ -54,7 +54,7 @@ Now that everything is prepared the machine can be started as follows:
 
 .. code-block:: bash
 
-  $ qemu-system-aarch64 -M imx8mp-evk -smp 4 -m 3G \
+  $ qemu-system-aarch64 -M imx8mp-evk \
       -display none -serial null -serial stdio \
       -kernel Image \
       -dtb imx8mp-evk.dtb \
index 0af5aad583598ed17f026b2bc16da8c00b9c8b7b..b84ac91a17dd6e09baa59481a091fc9f515b6e8c 100644 (file)
@@ -117,8 +117,10 @@ static void imx8mp_evk_machine_init(MachineClass *mc)
 {
     mc->desc = "NXP i.MX 8M Plus EVK Board";
     mc->init = imx8mp_evk_init;
+    mc->default_cpus = 4;
     mc->max_cpus = FSL_IMX8MP_NUM_CPUS;
     mc->default_ram_id = "imx8mp-evk.ram";
+    mc->default_ram_size = 6 * GiB;
     mc->get_default_cpu_type = imx8mp_evk_get_default_cpu_type;
 }