Skip to content

Instantly share code, notes, and snippets.

@cirosantilli
Created September 29, 2019 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirosantilli/bc08208d20ccde678ca64824310ed7a2 to your computer and use it in GitHub Desktop.
Save cirosantilli/bc08208d20ccde678ca64824310ed7a2 to your computer and use it in GitHub Desktop.
diff --git a/src/mem/packet.hh b/src/mem/packet.hh
index 130cc41ad..7bccfb09f 100644
--- a/src/mem/packet.hh
+++ b/src/mem/packet.hh
@@ -56,6 +56,7 @@
#include <bitset>
#include <cassert>
#include <list>
+#include <iostream>
#include "base/addr_range.hh"
#include "base/cast.hh"
@@ -196,7 +197,10 @@ class MemCmd
public:
- bool isRead() const { return testCmdAttrib(IsRead); }
+ bool isRead() const {
+ std::cout << "hello" << std::endl;
+ return testCmdAttrib(IsRead);
+ }
bool isWrite() const { return testCmdAttrib(IsWrite); }
bool isUpgrade() const { return testCmdAttrib(IsUpgrade); }
bool isRequest() const { return testCmdAttrib(IsRequest); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment