1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fpga: unmapMemoryBlock should never throw

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-11-14 15:31:32 +00:00
parent fda074d97f
commit 7ba8f7660e

View file

@ -69,9 +69,10 @@ std::shared_ptr<ip::Core> Card::lookupIp(const ip::IpIdentifier &id) const {
bool Card::unmapMemoryBlock(const MemoryBlock &block) {
if (memoryBlocksMapped.find(block.getAddrSpaceId()) ==
memoryBlocksMapped.end()) {
throw std::runtime_error(
logger->warn(
"Block " + std::to_string(block.getAddrSpaceId()) +
" is not mapped but was requested to be unmapped.");
return false;
}
auto &mm = MemoryManager::get();