blob: e6d999c8545bfaa77ed46a2db22b56927697cf0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Initialize HB search paths.
$hb_startup_path = (lookup-file hbfw/startup.simics)
$hb_script_location = (python "''.join(map('/'.__add__,\""+$hb_startup_path+"\"[1:].split('/')[0:-1]))")
python "os.environ['HB_TOOLPATH'] = \""+$hb_script_location+"\""
$hb_machine = (shell "env | grep 'GFW_P8_.*_PROC_CCIN' | sed 's/GFW_P8_\\(.*\\)_PROC_CCIN.*/\\1/'")
$hb_machine = (python "\""+$hb_machine+"\".lower()")
python "os.environ['HB_MACHINE'] = \""+$hb_machine+"\""
# Setup some common vars to use across machine types
echo "Note: Error messages for cecdrawer0_XXX are expected for non-Brazos machines"
$hb_masterproc = ""
try {
# Attempt to use the Brazos name
@SIM_get_object("cecdrawer0_p8Proc0")
$hb_masterproc = "cecdrawer0_p8Proc0"
} except {
# Default to Tuleta/Orlena name
$hb_masterproc = "p8Proc0"
}
$hb_pnor = ""
try {
# Attempt to use the Brazos name
@SIM_get_object("cecdrawer0_fpga0")
$hb_pnor = "cecdrawer0_fpga0"
} except {
# Default to Tuleta/Orlena name
$hb_pnor = "fpga0"
}
# Load HB debug tools.
try {
run-python-file (lookup-file hbfw/simics-debug-framework.py)
run-python-file (lookup-file hbfw/hb-simdebug.py)
} except { echo "ERROR: Failed to load Hostboot debug tools." }
########################### WORKAROUNDS ####################################
# Setup the mailbox.
# for mbox on core 0 use:
# proc_venicechip_cmp0.psi_hb->psihb_xivr_fsi=0x0140000000 #02010917
# for mbox on core 5 use:
#proc_venicechip_cmp0.psi_hb->psihb_xivr_fsi=0x0000A00140000000 #02010917
#proc_venicechip_cmp0.psi_hb->psihb_irsn=0x00030003FFFF0000 #0201091b
|