RSIM Bug Report #22

Version of RSIM1.0
Bug number22
Bug class2
Date6/21/99
Reported byauthors
AffectsNo impact -- only a few unnecessary warning messages
Filesdirectory.c

Problem Description

The wakeup function prints warning messages for some parts of the code that are working correctly. These messages do not affect the simulation -- either in timing, correctness, or ability to complete. However, they can be easily removed with a single-line fix to the directory source code.

Problem Fix

In one place of the directory.c code that says: if (dirptr->bufsz_rdy) /* we removed some pendings this time around */ { /* set the directory to wake up as soon as possible to process the newly removed pendings. Users might not want to actually wait here, since the request itself will have a normal delay when it is reprocessed. */ ActivitySchedTime(ME,DIRCYCLE,INDEPENDENT); } simply add one line to make the following code instead: (The added line sets dirptr->Sim to NULL, which avoids the warning messages printed in the wakeup function). if (dirptr->bufsz_rdy) /* we removed some pendings this time around */ { /* set the directory to wake up as soon as possible to process the newly removed pendings. Users might not want to actually wait here, since the request itself will have a normal delay when it is reprocessed. */ dirptr->Sim = NULL; /* no need for Sim here, since wakeup on time only */ ActivitySchedTime(ME,DIRCYCLE,INDEPENDENT); }