aboutsummaryrefslogtreecommitdiff
path: root/external/mambo
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-10-20 15:49:00 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-10-21 14:52:21 +1100
commit88b6b1ac5ef2bf64432e1780e60f3b2891703147 (patch)
treeefefa852ef56be86350cfdd2c98d954dc7a7b7ba /external/mambo
parent32988748d3f5364679ea238cf9b62c1ba532c679 (diff)
downloadskiboot-88b6b1ac5ef2bf64432e1780e60f3b2891703147.zip
skiboot-88b6b1ac5ef2bf64432e1780e60f3b2891703147.tar.gz
skiboot-88b6b1ac5ef2bf64432e1780e60f3b2891703147.tar.bz2
mambo: Make PVR change only on p8
Only make PVR change when running on the POWER8 simulator. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/mambo')
-rw-r--r--external/mambo/skiboot.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index a021c04..c316b9f 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -76,6 +76,11 @@ myconf config processor/cpu_frequency 512M
myconf config processor/timebase_frequency 1/1
myconf config enable_pseries_nvram false
+# We need to be DD2 or greater on p8 for the HILE HID bit.
+if { $env(SIMHOST) == "pegasus" } {
+ myconf config processor/initial/PVR 0x4b0201
+}
+
define machine myconf mysim
#
@@ -176,7 +181,6 @@ mysim memory fread $mconf(payload_addr) $payload_size $mconf(payload)
for { set i 0 } { $i < $mconf(threads) } { incr i } {
mysim mcm 0 cpu 0 thread $i set spr pc $mconf(boot_pc)
mysim mcm 0 cpu 0 thread $i set gpr 3 $mconf(epapr_dt_addr)
- mysim mcm 0 cpu 0 thread $i set spr pvr 0x4b0201
mysim mcm 0 cpu 0 thread $i config_on
}