Skip to content

Commit

Permalink
removing core.*, using root
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongchan authored and klingaard committed Jan 23, 2024
1 parent 8be6ae4 commit b1012b8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sparta/src/Scoreboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,9 @@ namespace sparta
// Go as high as the CPU node in this Tree. If we go higher,
// we could bind to a Scoreboard in another CPU! That'd be
// bad.
auto cpu_node = parent->findAncestorByName("core*");
// if a core node is not available, search from the root
if(cpu_node == nullptr){
cpu_node = parent->getRoot();
}

// Search from the root
auto cpu_node = parent->getRoot();
sparta_assert(cpu_node != nullptr, "Could not find the core nodes in this simulation");

std::function<Scoreboard*(sparta::TreeNode *)> findScoreboard =
Expand Down

0 comments on commit b1012b8

Please sign in to comment.