Skip to content

Commit

Permalink
chores: removed unused flexus functions
Browse files Browse the repository at this point in the history
  • Loading branch information
branylagaffe committed Oct 28, 2024
1 parent a054eaf commit 5d27db6
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 869 deletions.
1 change: 0 additions & 1 deletion components/Cache/CacheImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ class FLEXUS_COMPONENT(Cache)

uint32_t transferTime(const MemoryTransport& trans)
{
if (theFlexus->isFastMode()) { return 0; }
DBG_Assert(trans[MemoryMessageTag] != nullptr);
return ((trans[MemoryMessageTag]->reqSize() > 0) ? cfg.BusTime_Data : cfg.BusTime_NoData) - 1;
}
Expand Down
2 changes: 1 addition & 1 deletion components/NetShim/MemoryNetworkImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class FLEXUS_COMPONENT(MemoryNetwork)
1; // Note, this field really needs to be added to the NetworkMessage
msg->networkVC = 0;
msg->transmitLatency = transport[NetworkMessageTag]->size;
msg->flexusInFastMode = Flexus::Core::theFlexus->isFastMode();
msg->flexusInFastMode = false;
msg->hopCount = -1; // Note, the local switch also gets counted, so we start at -1
msg->startTS = Flexus::Core::theFlexus->cycleCount();
msg->myList = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion components/NetShim/NetShimImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class FLEXUS_COMPONENT(NetShim)
<< " dst_port=" << transport[NetworkMessageTag]->dst_port));
}
msg->transmitLatency = transport[NetworkMessageTag]->size;
msg->flexusInFastMode = Flexus::Core::theFlexus->isFastMode();
msg->flexusInFastMode = false;
msg->hopCount = -1; // Note, the local switch also gets counted, so we start at -1
msg->startTS = Flexus::Core::theFlexus->cycleCount();
msg->myList = nullptr;
Expand Down
12 changes: 6 additions & 6 deletions components/uArch/CoreModel/dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ CoreImpl::dispatch(boost::intrusive_ptr<Instruction> anInsn)
{
FLEXUS_PROFILE();

if (static_cast<int>(theNode) == Flexus::Core::theFlexus->breakCPU()) {
if (anInsn->sequenceNo() == Flexus::Core::theFlexus->breakInsn()) {
DBG_(VVerb, (<< theName << " Encounted break instruction: " << *anInsn));
Flexus::Core::theFlexus->setDebug("verb");
}
}
//if (static_cast<int>(theNode) == Flexus::Core::theFlexus->breakCPU()) {
// if (anInsn->sequenceNo() == Flexus::Core::theFlexus->breakInsn()) {
// DBG_(VVerb, (<< theName << " Encounted break instruction: " << *anInsn));
// Flexus::Core::theFlexus->setDebug("verb");
// }
//}

theIdleThisCycle = false;

Expand Down
Loading

0 comments on commit 5d27db6

Please sign in to comment.