Clear drive cache on link or unlink.
This commit is contained in:
parent
3f80bead1b
commit
70abb2ce5c
15
net_link.cc
15
net_link.cc
|
|
@ -17,7 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT) && !defined(macintosh)
|
#if !defined(WINNT) && !defined(macintosh)
|
||||||
#ident "$Id: net_link.cc,v 1.8 2002/06/30 02:21:31 steve Exp $"
|
#ident "$Id: net_link.cc,v 1.9 2002/07/03 03:08:47 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
@ -248,6 +248,11 @@ void Nexus::unlink(Link*that)
|
||||||
name_ = 0;
|
name_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If the link I'm removing was a driver for this nexus, then
|
||||||
|
cancel my guess of the driven value. */
|
||||||
|
if (that->get_dir() != Link::INPUT)
|
||||||
|
driven_ = NO_GUESS;
|
||||||
|
|
||||||
assert(that);
|
assert(that);
|
||||||
if (list_ == that) {
|
if (list_ == that) {
|
||||||
list_ = that->next_;
|
list_ = that->next_;
|
||||||
|
|
@ -274,6 +279,11 @@ void Nexus::relink(Link*that)
|
||||||
name_ = 0;
|
name_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If the link I'm adding is a driver for this nexus, then
|
||||||
|
cancel my guess of the driven value. */
|
||||||
|
if (that->get_dir() != Link::INPUT)
|
||||||
|
driven_ = NO_GUESS;
|
||||||
|
|
||||||
assert(that->nexus_ == 0);
|
assert(that->nexus_ == 0);
|
||||||
assert(that->next_ == 0);
|
assert(that->next_ == 0);
|
||||||
that->next_ = list_;
|
that->next_ = list_;
|
||||||
|
|
@ -447,6 +457,9 @@ bool NexusSet::contains(const NexusSet&that) const
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: net_link.cc,v $
|
* $Log: net_link.cc,v $
|
||||||
|
* Revision 1.9 2002/07/03 03:08:47 steve
|
||||||
|
* Clear drive cache on link or unlink.
|
||||||
|
*
|
||||||
* Revision 1.8 2002/06/30 02:21:31 steve
|
* Revision 1.8 2002/06/30 02:21:31 steve
|
||||||
* Add structure for asynchronous logic synthesis.
|
* Add structure for asynchronous logic synthesis.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue