38#ifndef __MEM_BACKDOOR_MANAGER_HH__
39#define __MEM_BACKDOOR_MANAGER_HH__
The AddrRange class encapsulates an address range, and supports a number of tests to check if two ran...
This class manages the backdoors for RangeAddrMapper.
MemBackdoorPtr createRevertedBackdoor(MemBackdoorPtr backdoor, const AddrRange &pkt_range)
This function creates a new backdoor, whose address range contains the original request address.
BackdoorManager(const std::vector< AddrRange > &original_ranges, const std::vector< AddrRange > &remapped_ranges)
const std::vector< AddrRange > & originalRanges
MemBackdoorPtr findBackdoor(const AddrRange &pkt_range) const
This function returns a created backdoor that fulfills the request, or returns nullptr if there's no.
std::vector< std::list< std::unique_ptr< MemBackdoor > > > backdoorLists
In this vector, each entry contains a list of backdoors that in the range in original address view.
const std::vector< AddrRange > & remappedRanges
MemBackdoorPtr getRevertedBackdoor(MemBackdoorPtr backdoor, const AddrRange &pkt_range)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Declaration of the Packet class.