mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
run: adapt qemu RAM size for okl4/x86
Our static okl4 system-integration configuration specifies a fixed RAM range from 32 to 800 MiB, which must be satisfied by Qemu or strange errors happen due to accesses beyond RAM. (Fixes current issues with nic_router.run.)
This commit is contained in:
parent
db3250f6ee
commit
49f64a0cac
@ -107,7 +107,12 @@ proc run_power_on { } {
|
||||
# on x86, we support booting via pxe or iso/disk image
|
||||
if {[have_spec x86]} {
|
||||
if {![regexp -- {-m} $qemu_args dummy]} {
|
||||
append qemu_args " -m 512 "
|
||||
if {[have_spec okl4]} {
|
||||
# okl4 system integration specifies RAM from 32 to 800 MiB
|
||||
append qemu_args " -m 800 "
|
||||
} else {
|
||||
append qemu_args " -m 512 "
|
||||
}
|
||||
}
|
||||
if {[have_include "load/tftp"]} {
|
||||
append qemu_args " -boot n -tftp [run_dir] -bootp boot/pulsar -no-reboot -no-shutdown "
|
||||
|
Loading…
Reference in New Issue
Block a user