summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/test/prdfsimScrDB.C
diff options
context:
space:
mode:
authorChris Phan <cphan@us.ibm.com>2013-03-13 15:07:18 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-04-02 17:30:37 -0500
commit38afab26d3e754f5ef0a10c6fa8984bbefe6b454 (patch)
tree8692d80dee420cd8fea7cb59d8dd61f2be81f7d9 /src/usr/diag/prdf/test/prdfsimScrDB.C
parent4f40ea302571967103e803cccb7dce1bcfae1995 (diff)
downloadtalos-hostboot-38afab26d3e754f5ef0a10c6fa8984bbefe6b454.tar.gz
talos-hostboot-38afab26d3e754f5ef0a10c6fa8984bbefe6b454.zip
PRDF: set functional for targets that sim code touches
Change-Id: I9f62fd5a769fcd8eb2c5ae513ca2011c062242d3 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3540 Tested-by: Jenkins Server Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3827
Diffstat (limited to 'src/usr/diag/prdf/test/prdfsimScrDB.C')
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimScrDB.C10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/diag/prdf/test/prdfsimScrDB.C b/src/usr/diag/prdf/test/prdfsimScrDB.C
index e0754dd23..25c13ba7e 100755
--- a/src/usr/diag/prdf/test/prdfsimScrDB.C
+++ b/src/usr/diag/prdf/test/prdfsimScrDB.C
@@ -25,6 +25,7 @@
#include <iipMopRegisterAccess.h>
#include <prdfTrace.H>
#include <prdfPlatServices.H>
+#include "prdfsimServices.H"
namespace PRDF
{
@@ -54,7 +55,12 @@ namespace PRDF
uint64_t registerId,
SimOp i_op)
{
- //PRDF_DENTER( "ScrDB::processCmd()" );
+ // set target state to functional if not already functional
+ if(false == isFunctional(i_ptargetHandle))
+ {
+ getSimServices().setHwasState(i_ptargetHandle, true);
+ }
+
switch (i_op)
{
case WRITE:
@@ -70,7 +76,7 @@ namespace PRDF
PRDF_ERR( "ScrDB::processCmd() unsupported operation: 0x%X", i_op );
break;
}
- //PRDF_DEXIT( "ScrDB::processCmd()" );
+
return;
}
OpenPOWER on IntegriCloud