build {
core init timer lib/ld
server/cpu_balancer app/cpu_burner app/top server/dynamic_rom
}
if {![have_include "power_on/qemu"]} {
puts "Run script is not supported on this platform"
exit 0
}
# foc in principle supports migration, but due to bug #4357 foc is not tested
if {![have_spec nova] && ![have_spec sel4]} {
puts "Run script is not supported on this platform"
exit 0
}
set cpu_width 4
set cpu_height 1
set report_config "yes"
set use_trace "yes"
proc report_rom_start_node { } {
global report_config
if {$report_config != "yes"} {
return { } }
return {
}
}
create_boot_directory
import_from_depot [depot_user]/src/report_rom \
[depot_user]/src/shim
install_config {
} [report_rom_start_node] {
}
build_boot_image [build_artifacts]
append qemu_args " -nographic"
append qemu_args " -smp [expr $cpu_width * $cpu_height],cores=$cpu_width,threads=$cpu_height"
run_genode_until {.*thread xpos="[1-9]" ypos="0" name="signal handler" policy="max-utilize".*\n} 60