# HG changeset patch
# User Brad Beckmann <[email protected]>
# Date 1261413068 28800
# Node ID d2c75e1450a015d15032fe378b030509aabeb3df
# Parent  2bff56035b82240c99bf0db244d134100c40b8bf
m5: Added the function to set a request's Pc

diff -r 2bff56035b82 -r d2c75e1450a0 src/mem/request.hh
--- a/src/mem/request.hh        Mon Dec 21 08:31:08 2009 -0800
+++ b/src/mem/request.hh        Mon Dec 21 08:31:08 2009 -0800
@@ -439,6 +439,14 @@
         return _pc;
     }
 
+    /** Accessor function for pc.*/
+    void
+    setPC(Addr pc)
+    {
+        _pc = pc;
+        privateFlags.set(VALID_PC);
+    }
+
     /** Accessor functions for flags.  Note that these are for testing
        only; setting flags should be done via setFlags(). */
     bool isUncacheable() const { return _flags.isSet(UNCACHEABLE); }

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to