PSI sics-cvs-psi-complete-tree-post-site-support

This commit is contained in:
2004-03-09 15:18:11 +00:00
committed by Douglas Clowes
parent 6373f6b0fb
commit ae77364de2
196 changed files with 8344 additions and 3485 deletions

View File

@@ -84,6 +84,11 @@ static float FAILRATE;
return HWIdle;
}
if(pSim->iPause == 1)
{
return HWPause;
}
if(SimRandom() < FAILRATE)
{
return HWFault;
@@ -118,10 +123,6 @@ static float FAILRATE;
}
else
{
if(pSim->iPause == 1)
{
return HWPause;
}
return HWIdle;
}
}
@@ -351,16 +352,9 @@ static float FAILRATE;
pRes->Set = SIMSet;
pRes->Get = SIMGet;
pRes->Send = SIMSend;
pRes->KillPrivate = NULL;
FAILRATE = fFail;
return pRes;
}
/*--------------------------------------------------------------------------*/
void KillSIMCounter(pCounterDriver self)
{
assert(self);
DeleteCounterDriver(self);
}