| 17 | } |
| 18 | |
| 19 | const 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 | |
| 26 | machine::FrontendMemory *ProgramModel::mem_access_rw() const { |
| 27 | if (machine == nullptr) { return nullptr; } |
nothing calls this directly
no test coverage detected