mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-28 09:38:53 +00:00
7113c17100
* fix build error for bbl upon intial build * set memory to 128 MB in spike * support 'forever' timeout issue #2423
29 lines
506 B
Plaintext
29 lines
506 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 "-m128 [pwd]/debug/bbl "
|
|
|
|
set spike "spike"
|
|
eval spawn $spike $spike_args
|
|
set spike_spawn_id $spawn_id
|
|
|
|
return true
|
|
}
|