|
CohereSim: A Bus-based Cache Simulator
v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
|
Definition of the coherence protocol base class. More...
#include "cache_abc.h"

Go to the source code of this file.
Data Structures | |
| class | CoherenceProtocol |
| The base class for coherence protocols. More... | |
Macros | |
| #define | STATE_ERR std::cerr << __FILE__ << ':' << __FUNCTION__ << ": Cache line in invalid state: " << (int)(line->state) << std::endl |
| Error message printed when a cache line is in a state not supported by the coherence protocol. | |
| #define | UNIMPLEMENTED std::cerr << "Call of unimplemented bus message: " << __FUNCTION__ << std::endl; return false |
| Error message printed when a cache issues a bus message not supported by the coherence protocol. | |
| #define | ADD_COHERENCE_TO_CMD_LINE(coh_prot) |
| Create a mapping in 'coherence_map' from a string containing the class name to a factory method for the class. More... | |
Definition of the coherence protocol base class.
| #define ADD_COHERENCE_TO_CMD_LINE | ( | coh_prot | ) |
Create a mapping in 'coherence_map' from a string containing the class name to a factory method for the class.
| coh_prot | The coherence protocol type |