The InteractiveMode abstract base class.
More...
#include <interactive_mode.h>
|
virtual void | reset ()=0 |
| Revert the system back to the initial state.
|
|
virtual void | printSeparator ()=0 |
| Print a horizontal line in the table.
|
|
virtual void | printStats ()=0 |
| Print results after each operation to the table.
|
|
The InteractiveMode abstract base class.
◆ InteractiveMode()
InteractiveMode::InteractiveMode |
( |
std::string |
p_name | ) |
|
|
inline |
Construct a new interactive mode cache.
- Parameters
-
p_name | The policy/protocol name |
◆ evalutateCommand()
virtual bool InteractiveMode::evalutateCommand |
( |
std::string & |
cmd | ) |
|
|
pure virtual |
◆ getLineState()
state_e InteractiveMode::getLineState |
( |
uint32_t |
set_idx, |
|
|
uint32_t |
way_idx |
|
) |
| |
|
inlinevirtual |
Get the state of a line in the cache.
- Parameters
-
set_idx | The index of the set containing the line |
way_idx | The index of the way containing the line (0 to assoc-1) |
- Returns
- The state of the cache line
Implements CacheABC.
◆ issueBusMsg()
virtual bool InteractiveMode::issueBusMsg |
( |
bus_msg_e |
bus_msg | ) |
|
|
inlinevirtual |
Issue a BusRd message to neighboring caches.
- Parameters
-
bus_msg | The specific bus message |
- Returns
- True if the 'COPIES-EXIST' line was asserted
Implements CacheABC.
Reimplemented in InteractiveModeCoherence.
The documentation for this class was generated from the following file: