Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@powerjg
Copy link
Contributor

@powerjg powerjg commented Oct 21, 2025

The AbstractBoard (which is needed for tests) depends on this object
So, include this object even in NULL builds

Signed-off-by: Jason Lowe-Power [email protected]

The `AbstractBoard` (which is needed for tests) depends on this object
So, include this object even in NULL builds

Signed-off-by: Jason Lowe-Power <[email protected]>
@powerjg powerjg force-pushed the fix-replacement-test branch from 403a663 to e94b61b Compare October 21, 2025 19:04
@erin-le erin-le added the cpu General gem5 CPU code (e.g., `BaseCPU`) label Oct 21, 2025
Copy link
Member

@BobbyRBruce BobbyRBruce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I'm not entirely sure what PcCountTracker is meant to do when compiling to NULL, this simplifies the build and I don't see why it shouldn't be compiled in for all cases.

@erin-le erin-le merged commit bb0f682 into gem5:develop Oct 28, 2025
34 checks passed
@powerjg
Copy link
Contributor Author

powerjg commented Oct 28, 2025

Though I'm not entirely sure what PcCountTracker is meant to do when compiling to NULL, this simplifies the build and I don't see why it shouldn't be compiled in for all cases.

It doesn't do anything in NULL builds, but the AbstractBoard imports the SimObject. The TestBoard depends on AbstractBoard, so even if you're using NULL with the TestBoard, this is required in the binary.

The underlying issue is that the typing in AbstractBoard causes us to need a lot of potentially unused SimObjects (PCIBus is another example). We should revisit this at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cpu General gem5 CPU code (e.g., `BaseCPU`)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants