diff options
author | Michael Neuling <mikey@neuling.org> | 2015-10-20 15:48:59 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-10-21 14:51:58 +1100 |
commit | 32988748d3f5364679ea238cf9b62c1ba532c679 (patch) | |
tree | 5413191bf580dc8362d68ee3cdcc2465c8bb8d3c /external/mambo | |
parent | 8df211778915b4b26bc368ec4505133a9777d879 (diff) | |
download | talos-skiboot-32988748d3f5364679ea238cf9b62c1ba532c679.tar.gz talos-skiboot-32988748d3f5364679ea238cf9b62c1ba532c679.zip |
mambo: Use SIMHOST to determine the simulator type
Use SIMHOST to determine the simulator type. This means we can
support past and future sims other than P8.
Signed-off-by: Michael Neuling <mikey@neuling.org>
[stewart@linux.vnet.ibm.com: support environments without SIMHOST]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/mambo')
-rw-r--r-- | external/mambo/skiboot.tcl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index cfae4891..a021c04f 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -61,8 +61,10 @@ mconfig tap_base MAMBO_NET_TAP_BASE 0 # # Create machine config # - -define dup pegasus myconf +if { ! [info exists env(SIMHOST)] } { + set env(SIMHOST) "pegasus" +} +define dup $env(SIMHOST) myconf myconf config processor/number_of_threads $mconf(threads) myconf config memory_size $mconf(memory) myconf config processor_option/ATTN_STOP true |