From 6e90f70ec2c11ab167a83a7b3ca154020e7d2b09 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Wed, 27 Nov 2013 19:07:51 +0100 Subject: [PATCH] run: force qemu to emulate PBXA9 with -m 768 For PBXA9 qemu adjusts provided RAM chips to the -m arg. Thus we filter user values and force value that enables all chips that Genode expects to be available. Not doing so leads to inexplicable errors. ref #964 --- tool/run | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tool/run b/tool/run index b7cbf9fa31..4983205d76 100755 --- a/tool/run +++ b/tool/run @@ -494,7 +494,16 @@ proc spawn_qemu { wait_for_re timeout_value } { append qemu_args " -serial mon:stdio " } # tweak emulated platform for specific platforms - if {[have_spec platform_pbxa9]} { append qemu_args " -M realview-pbx-a9 -m 256 " } + if {[have_spec platform_pbxa9]} { + # + # For PBXA9 qemu adjusts provided RAM chips to the -m arg. Thus we + # filter user values and force value that enables all chips that Genode + # expects to be available. Not doing so leads to inexplicable errors. + # + regsub -all {\-m ([0-9])+} $qemu_args "" qemu_args + append qemu_args " -m 768" + append qemu_args " -M realview-pbx-a9" + } if {[have_spec platform_vpb926]} { append qemu_args " -M versatilepb -m 128 " } if {[have_spec platform_vea9x4]} { append qemu_args " -M vexpress-a9 -cpu cortex-a9 -m 256 " }