summaryrefslogtreecommitdiff
path: root/src/mem/ruby/libruby.hh
diff options
context:
space:
mode:
authorPolina Dudnik <pdudnik@gmail.com>2009-08-14 14:06:14 -0500
committerPolina Dudnik <pdudnik@gmail.com>2009-08-14 14:06:14 -0500
commit4b924fd16cf64f242aa4832c13f38fd96c7c1fa0 (patch)
tree7a9d888449044a5f60178a924054819ba7a755ec /src/mem/ruby/libruby.hh
parent35082a67b65457e36cffdc5f8a13aacaa4258939 (diff)
downloadgem5-4b924fd16cf64f242aa4832c13f38fd96c7c1fa0.tar.xz
SMT atomics modifications:
don't allow enquing from other threads if servicing and atomic for a thread
Diffstat (limited to 'src/mem/ruby/libruby.hh')
-rw-r--r--src/mem/ruby/libruby.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/ruby/libruby.hh b/src/mem/ruby/libruby.hh
index 3b6e19c41..a73ff5cf4 100644
--- a/src/mem/ruby/libruby.hh
+++ b/src/mem/ruby/libruby.hh
@@ -31,10 +31,11 @@ struct RubyRequest {
uint64_t pc;
RubyRequestType type;
RubyAccessMode access_mode;
+ unsigned proc_id;
RubyRequest() {}
- RubyRequest(uint64_t _paddr, uint8_t* _data, int _len, uint64_t _pc, RubyRequestType _type, RubyAccessMode _access_mode)
- : paddr(_paddr), data(_data), len(_len), pc(_pc), type(_type), access_mode(_access_mode)
+ RubyRequest(uint64_t _paddr, uint8_t* _data, int _len, uint64_t _pc, RubyRequestType _type, RubyAccessMode _access_mode, unsigned _proc_id = 0)
+ : paddr(_paddr), data(_data), len(_len), pc(_pc), type(_type), access_mode(_access_mode), proc_id(_proc_id)
{}
};