genode/tool/run/power_on/spike
Stefan Kalkowski 3886686b83 hw: get rid of global makefiles specific to hw
This commit mostly removes the globally visible NR_OF_CPUS define
from the global makefile specifiers defined in the base-hw repository.
Whereever necessary it adds platform specific makefiles to the base
repository when they were missing.

Ref #2190
2017-01-13 13:06:55 +01:00

27 lines
491 B
Plaintext

##
# Execute scenario using spike
#
source [genode_dir]/tool/run/spike.inc
proc is_spike_available { } {
if {[have_spec riscv]} { return true }
puts stderr "skipping execution because platform is not supported by spike"
return false
}
proc run_power_on { } {
global spike_args
global spike
global spike_spawn_id
if {![is_spike_available]} { return 0 }
append spike_args " [run_dir]/image.elf "
set spike "spike"
eval spawn $spike $spike_args
set spike_spawn_id $spawn_id
}