summaryrefslogtreecommitdiff
path: root/src/mem/ruby/libruby.hh
diff options
context:
space:
mode:
authorDerek Hower <drh5@cs.wisc.edu>2009-09-10 22:02:13 -0500
committerDerek Hower <drh5@cs.wisc.edu>2009-09-10 22:02:13 -0500
commit1e40ee4ea081908782dd7ba159b9f680d933855c (patch)
tree86ea0a84a133b237eb1cd4c0f790765ae08905fb /src/mem/ruby/libruby.hh
parentca0e0c368357f1e31b69c92ada4e3021b84d5560 (diff)
parent0637fe0bfd626711b2535cbdf5c40ba67fa7cdfe (diff)
downloadgem5-1e40ee4ea081908782dd7ba159b9f680d933855c.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.hh8
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