summaryrefslogtreecommitdiffstats
path: root/src/occ_405/main.c
diff options
context:
space:
mode:
authorWilliam Bryan <wilbryan@us.ibm.com>2017-02-14 14:26:53 -0600
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-02-23 18:04:29 -0500
commit6d97914db8dd962af2ee80577e6e94f42bb9378b (patch)
tree49cd8614db7d09bfbbb9aab7d0249e67672684c7 /src/occ_405/main.c
parentddf83aa37a58c3609a12d9f5e8f113a5b51b07d1 (diff)
downloadtalos-occ-6d97914db8dd962af2ee80577e6e94f42bb9378b.tar.gz
talos-occ-6d97914db8dd962af2ee80577e6e94f42bb9378b.zip
APSS P8/P9 Spec Compatibility
Change-Id: Ib6cc0f872c22131b4268b3016d264460b7ef9098 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36450 Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/occ_405/main.c')
-rwxr-xr-xsrc/occ_405/main.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/occ_405/main.c b/src/occ_405/main.c
index 3012a01..688be99 100755
--- a/src/occ_405/main.c
+++ b/src/occ_405/main.c
@@ -174,6 +174,17 @@ void check_runtime_environment(void)
// slow down RTL for Simics
G_mics_per_tick = SIMICS_MICS_PER_TICK;
G_dcom_tx_apss_wait_time = SIMICS_MICS_PER_TICK * 6 / 10;
+
+ // Same comment as above about lower 32-bits. Bit 62 can be toggled
+ // on or off (in Simics) to indicate for which APSS specification the
+ // model is configured.
+ G_shared_gpe_data.spipss_spec_p9 =
+ (0 != (flags & 0x0000000000000002) ) ? FALSE : TRUE;
+
+ }
+ else
+ {
+ G_shared_gpe_data.spipss_spec_p9 = 0;
}
}
@@ -1812,6 +1823,14 @@ int main(int argc, char **argv)
else
{
MAIN_TRAC_INFO("Currently running in Simics environment");
+ if(G_shared_gpe_data.spipss_spec_p9)
+ {
+ MAIN_TRAC_INFO("Using P9 Spec for APSS data gathering");
+ }
+ else
+ {
+ MAIN_TRAC_INFO("Using P8 Spec for APSS data gathering");
+ }
}
// Trace what happened before ssx initialization
OpenPOWER on IntegriCloud