ruby: Ruby 64-bit address output fixes.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -63,6 +63,8 @@ struct SequencerRequest {
|
||||
{}
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const SequencerRequest& obj);
|
||||
|
||||
class Sequencer : public Consumer, public RubyPort {
|
||||
public:
|
||||
// Constructors
|
||||
|
||||
Reference in New Issue
Block a user