[Skiboot] [PATCH 3/7] mambo: Make PVR change only on p8

Michael Neuling mikey at neuling.org
Tue Oct 20 15:49:00 AEDT 2015


Only make PVR change when running on the POWER8 simulator.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 external/mambo/skiboot.tcl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 93cc332..1590102 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -74,6 +74,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
 
 #
@@ -174,7 +179,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    
 }
 
-- 
2.1.4



More information about the Skiboot mailing list