ruby: Ruby 64-bit address output fixes.

This commit is contained in:
Brad Beckmann
2009-11-18 13:55:57 -08:00
parent b7cc66af31
commit 17e14efa7e
4 changed files with 16 additions and 2 deletions

View File

@@ -66,6 +66,12 @@ ostream& operator<<(ostream& out, const RubyRequestType& obj)
return out;
}
ostream& operator<<(std::ostream& out, const RubyRequest& obj)
{
out << hex << "0x" << obj.paddr << flush;
return out;
}
vector<string> tokenizeString(string str, string delims)
{
vector<string> tokens;

View File

@@ -39,6 +39,8 @@ struct RubyRequest {
{}
};
std::ostream& operator<<(std::ostream& out, const RubyRequest& obj);
/**
* Initialize the system. cfg_file is a Ruby-lang configuration script
*/

View File

@@ -44,6 +44,10 @@
//Sequencer::Sequencer(int core_id, MessageBuffer* mandatory_q)
#define LLSC_FAIL -2
ostream& operator<<(std::ostream& out, const SequencerRequest& obj) {
out << obj.ruby_request << flush;
return out;
}
Sequencer::Sequencer(const string & name)
:RubyPort(name)
@@ -106,7 +110,7 @@ void Sequencer::wakeup() {
SequencerRequest* request = m_readRequestTable.lookup(keys[i]);
if (current_time - request->issue_time >= m_deadlock_threshold) {
WARN_MSG("Possible Deadlock detected");
WARN_EXPR(request);
WARN_EXPR(request->ruby_request);
WARN_EXPR(m_version);
WARN_EXPR(keys.size());
WARN_EXPR(current_time);
@@ -121,7 +125,7 @@ void Sequencer::wakeup() {
SequencerRequest* request = m_writeRequestTable.lookup(keys[i]);
if (current_time - request->issue_time >= m_deadlock_threshold) {
WARN_MSG("Possible Deadlock detected");
WARN_EXPR(request);
WARN_EXPR(request->ruby_request);
WARN_EXPR(m_version);
WARN_EXPR(current_time);
WARN_EXPR(request->issue_time);

View File

@@ -63,6 +63,8 @@ struct SequencerRequest {
{}
};
std::ostream& operator<<(std::ostream& out, const SequencerRequest& obj);
class Sequencer : public Consumer, public RubyPort {
public:
// Constructors