diff options
author | Derek Hower <drh5@cs.wisc.edu> | 2009-09-01 09:36:53 -0500 |
---|---|---|
committer | Derek Hower <drh5@cs.wisc.edu> | 2009-09-01 09:36:53 -0500 |
commit | edd522b30a12613946573c0e6c91659949a1f64d (patch) | |
tree | ae399988bb6554a6d3754a7b2e49c8ba4b7d8cd6 /src/mem/ruby/libruby.hh | |
parent | 041a8cefc72dd20d99acdd9e1042949f49ab460c (diff) | |
parent | 849bad7ad7c8b483d02b317e7f6ecf0c1292a48d (diff) | |
download | gem5-edd522b30a12613946573c0e6c91659949a1f64d.tar.xz |
Automated merge with ssh://hg@m5sim.org/m5
Diffstat (limited to 'src/mem/ruby/libruby.hh')
-rw-r--r-- | src/mem/ruby/libruby.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mem/ruby/libruby.hh b/src/mem/ruby/libruby.hh index a73ff5cf4..a5418d9e6 100644 --- a/src/mem/ruby/libruby.hh +++ b/src/mem/ruby/libruby.hh @@ -34,7 +34,7 @@ struct RubyRequest { unsigned proc_id; RubyRequest() {} - RubyRequest(uint64_t _paddr, uint8_t* _data, int _len, uint64_t _pc, RubyRequestType _type, RubyAccessMode _access_mode, unsigned _proc_id = 0) + RubyRequest(uint64_t _paddr, uint8_t* _data, int _len, uint64_t _pc, RubyRequestType _type, RubyAccessMode _access_mode, unsigned _proc_id = 100) : paddr(_paddr), data(_data), len(_len), pc(_pc), type(_type), access_mode(_access_mode), proc_id(_proc_id) {} }; @@ -76,6 +76,12 @@ RubyPortHandle libruby_get_port_by_name(const char* name); */ int64_t libruby_issue_request(RubyPortHandle p, struct RubyRequest request); + +/** + * + */ +bool libruby_isReady(RubyPortHandle p, struct RubyRequest request); + /** * writes data directly into Ruby's data array. Note that this * ignores caches, and should be considered incoherent after |