Sequencer.hh (6899:f8057af86bf7) | Sequencer.hh (6922:1620cffaa3b6) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 42 unchanged lines hidden (view full) --- 51class CacheMsg; 52class MachineID; 53class CacheMemory; 54 55class RubySequencerParams; 56 57struct SequencerRequest { 58 RubyRequest ruby_request; | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 42 unchanged lines hidden (view full) --- 51class CacheMsg; 52class MachineID; 53class CacheMemory; 54 55class RubySequencerParams; 56 57struct SequencerRequest { 58 RubyRequest ruby_request; |
59 int64_t id; | |
60 Time issue_time; 61 | 59 Time issue_time; 60 |
62 SequencerRequest(const RubyRequest & _ruby_request, int64_t _id, Time _issue_time) 63 : ruby_request(_ruby_request), id(_id), issue_time(_issue_time) | 61 SequencerRequest(const RubyRequest & _ruby_request, 62 Time _issue_time) 63 : ruby_request(_ruby_request), 64 issue_time(_issue_time) |
64 {} 65}; 66 67std::ostream& operator<<(std::ostream& out, const SequencerRequest& obj); 68 69class Sequencer : public RubyPort, public Consumer { 70public: 71 typedef RubySequencerParams Params; --- 8 unchanged lines hidden (view full) --- 80 81 void printConfig(ostream& out) const; 82 83 void printProgress(ostream& out) const; 84 85 void writeCallback(const Address& address, DataBlock& data); 86 void readCallback(const Address& address, DataBlock& data); 87 | 65 {} 66}; 67 68std::ostream& operator<<(std::ostream& out, const SequencerRequest& obj); 69 70class Sequencer : public RubyPort, public Consumer { 71public: 72 typedef RubySequencerParams Params; --- 8 unchanged lines hidden (view full) --- 81 82 void printConfig(ostream& out) const; 83 84 void printProgress(ostream& out) const; 85 86 void writeCallback(const Address& address, DataBlock& data); 87 void readCallback(const Address& address, DataBlock& data); 88 |
88 // called by Tester or Simics 89 int64_t makeRequest(const RubyRequest & request); 90 int isReady(const RubyRequest& request); | 89 RequestStatus makeRequest(const RubyRequest & request); 90 RequestStatus getRequestStatus(const RubyRequest& request); |
91 bool empty() const; 92 93 void print(ostream& out) const; 94 void printStats(ostream & out) const; 95 void checkCoherence(const Address& address); 96 97 // bool getRubyMemoryValue(const Address& addr, char* value, unsigned int size_in_bytes); 98 // bool setRubyMemoryValue(const Address& addr, char *value, unsigned int size_in_bytes); --- 64 unchanged lines hidden --- | 91 bool empty() const; 92 93 void print(ostream& out) const; 94 void printStats(ostream & out) const; 95 void checkCoherence(const Address& address); 96 97 // bool getRubyMemoryValue(const Address& addr, char* value, unsigned int size_in_bytes); 98 // bool setRubyMemoryValue(const Address& addr, char *value, unsigned int size_in_bytes); --- 64 unchanged lines hidden --- |