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:
parent
fda074d97f
commit
7ba8f7660e
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue