Deleted Added
sdiff udiff text old ( 6151:bc6b84108443 ) new ( 6152:705b277e1141 )
full compact
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

--- 69 unchanged lines hidden (view full) ---

78 void removeStoreRequest(const Address & addr, int thread);
79
80 void printProgress(ostream& out) const;
81
82 // returns a pointer to the request in the request tables
83 CacheMsg & getReadRequest( const Address & addr, int thread );
84 CacheMsg & getWriteRequest( const Address & addr, int thread );
85
86 // called by Ruby when transaction completes
87 void writeConflictCallback(const Address& address);
88 void readConflictCallback(const Address& address);
89 void writeConflictCallback(const Address& address, GenericMachineType respondingMach, int thread);
90 void readConflictCallback(const Address& address, GenericMachineType respondingMach, int thread);
91
92 void writeCallback(const Address& address, DataBlock& data);
93 void readCallback(const Address& address, DataBlock& data);
94 void writeCallback(const Address& address);
95 void readCallback(const Address& address);
96 void writeCallback(const Address& address, DataBlock& data, GenericMachineType respondingMach, PrefetchBit pf, int thread);
97 void readCallback(const Address& address, DataBlock& data, GenericMachineType respondingMach, PrefetchBit pf, int thread);
98 void writeCallback(const Address& address, DataBlock& data, GenericMachineType respondingMach, int thread);
99 void readCallback(const Address& address, DataBlock& data, GenericMachineType respondingMach, int thread);

--- 26 unchanged lines hidden (view full) ---

126
127 bool getRubyMemoryValue(const Address& addr, char* value, unsigned int size_in_bytes);
128 bool setRubyMemoryValue(const Address& addr, char *value, unsigned int size_in_bytes);
129
130 void removeRequest(const CacheMsg& request);
131private:
132 // Private Methods
133 bool tryCacheAccess(const Address& addr, CacheRequestType type, const Address& pc, AccessModeType access_mode, int size, DataBlock*& data_ptr);
134 void conflictCallback(const CacheMsg& request, GenericMachineType respondingMach, int thread);
135 void hitCallback(const CacheMsg& request, DataBlock& data, GenericMachineType respondingMach, int thread);
136 bool insertRequest(const CacheMsg& request);
137
138
139 // Private copy constructor and assignment operator
140 Sequencer(const Sequencer& obj);
141 Sequencer& operator=(const Sequencer& obj);
142

--- 31 unchanged lines hidden ---