MCPcopy Create free account
hub / github.com/cvut/qtrvsim / mem_access

Method mem_access

src/gui/windows/program/programmodel.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19const machine::FrontendMemory *ProgramModel::mem_access() const {
20 if (machine == nullptr) { return nullptr; }
21 if (machine->memory_data_bus() != nullptr) { return machine->memory_data_bus(); }
22 throw std::logic_error("Use of backend memory in frontend."); // TODO
23 // return machine->memory();
24}
25
26machine::FrontendMemory *ProgramModel::mem_access_rw() const {
27 if (machine == nullptr) { return nullptr; }

Callers

nothing calls this directly

Calls 1

memory_data_busMethod · 0.80

Tested by

no test coverage detected