34 [[nodiscard]]
byte read(
unsigned addr);
35 [[nodiscard]]
byte peek(
unsigned addr)
const {
return ram[addr]; }
36 void write(
unsigned addr,
byte value);
64 std::vector<bool> completely_initialized_cacheline;
65 std::vector<std::bitset<CacheLine::SIZE>> uninitialized;
This class keeps track of which bytes in the Ram have been written to.
const byte * getReadCacheLine(unsigned addr) const
byte * getRWCacheLines(unsigned addr, unsigned size) const
Ram & getUncheckedRam()
Give access to the unchecked Ram.
void write(unsigned addr, byte value)
CheckedRam(const DeviceConfig &config, const std::string &name, static_string_view description, unsigned size)
byte * getWriteCacheLine(unsigned addr) const
byte peek(unsigned addr) const
Generic Gang-of-Four Observer class, templatized edition.
This file implemented 3 utility functions:
size_t size(std::string_view utf8)