Backed out changeset 94a7bb476fca: caused memory leak.

This commit is contained in:
Steve Reinhardt
2008-06-28 13:19:38 -04:00
parent 6b45238316
commit caaac16803
17 changed files with 57 additions and 87 deletions

View File

@@ -105,14 +105,13 @@ Cache<TagStore>::getPort(const std::string &if_name, int idx)
}
template<class TagStore>
bool
Cache<TagStore>::deletePort(Port *p)
void
Cache<TagStore>::deletePortRefs(Port *p)
{
if (cpuSidePort == p || memSidePort == p)
panic("Can only delete functional ports\n");
delete p;
return true;
}