Skip to content

Commit

Permalink
Update sim scripts to use $proc_chip_type to lookup chip for Axone
Browse files Browse the repository at this point in the history
Update the simics scripts to use variables provided by simics

Change-Id: I5c01760630911d723286fcb1450a78e7e44c56a1
RTC: 204842
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82306
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V Swenson <cswenson@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
  • Loading branch information
crgeddes authored and dcrowell77 committed Aug 20, 2019
1 parent cdc14bc commit a950157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/build/simics/standalone.simics
Expand Up @@ -24,8 +24,7 @@ if ($hb_skip_vpd_preload == 0) {
$procChipType=(get-object-list p9_proc)[0]->chip_type
python "os.environ['HB_PROC_CHIP_TYPE'] = \""+$procChipType+"\""
} else {
$procChipType=($hb_masterproc)->chip_type
python "os.environ['HB_PROC_CHIP_TYPE'] = \""+$procChipType+"\""
python "os.environ['HB_PROC_CHIP_TYPE'] = \""+$proc_chip_type+"\""
}


Expand Down
5 changes: 3 additions & 2 deletions src/build/simics/startup.simics
Expand Up @@ -48,7 +48,8 @@ if ($hb_mode == 1) {
}

}else{
$hb_machine = "AXONE"
# simics now provides us the chip type (starting w/ p9a )
$hb_machine = $proc_chip_type
}

python "os.environ['HB_MACHINE'] = \""+$hb_machine+"\""
Expand Down Expand Up @@ -134,7 +135,7 @@ if($hw_security == "1") {
$jumperApplied=FALSE
}

if ($hb_machine == "AXONE") {
if ($hb_machine == "p9a") {
# Set logical jumper state in SIMICS based on HW policy
# "TRUE"=jumper applied(security disabled, default)
# "FALSE"=jumper removed(security enabled)
Expand Down

0 comments on commit a950157

Please sign in to comment.