Only issue responses if we aren;t already blocked
[gem5.git] / src / mem / request.hh
index a1524f807335f892626288c10848ef126f0f5ab3..e54984fcde1f6d372399a68821eef07efbf5b472 100644 (file)
  */
 
 /**
- * @file Decleration of a request, the overall memory request consisting of
+ * @file
+ * Declaration of a request, the overall memory request consisting of
  the parts of the request that are persistent throughout the transaction.
  */
 
 #ifndef __MEM_REQUEST_HH__
 #define __MEM_REQUEST_HH__
 
-#include "arch/isa_traits.hh"
+#include "sim/host.hh"
+#include "sim/root.hh"
+
+#include <cassert>
 
 class Request;
 
@@ -228,9 +232,11 @@ class Request
     Addr getPC() { assert(validPC); return pc; }
 
     /** Accessor Function to Check Cacheability. */
-    bool isUncacheable() { return getFlags() & UNCACHEABLE; }
+    bool isUncacheable() { return (getFlags() & UNCACHEABLE) != 0; }
+
+    bool isInstRead() { return (getFlags() & INST_READ) != 0; }
 
-    bool isInstRead() { return getFlags() & INST_READ; }
+    bool isLocked() { return (getFlags() & LOCKED) != 0; }
 
     friend class Packet;
 };