diff options
author | Liam White <yteslice@airmail.cc> | 2022-04-13 21:02:55 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:53 +0200 |
commit | afab6c143cb486c7d14f1509cd04049ad08d3a65 (patch) | |
tree | fb3a35b23be7dd5b2c502ec550c027760257c6f3 /src/common/address_space.h | |
parent | fd7afda1e802fffe843ac28811470432949fe7ee (diff) |
General: Fix compilation for GCC
Diffstat (limited to 'src/common/address_space.h')
-rw-r--r-- | src/common/address_space.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/address_space.h b/src/common/address_space.h index fd2f32b7d..8e13935af 100644 --- a/src/common/address_space.h +++ b/src/common/address_space.h @@ -22,7 +22,8 @@ struct EmptyStruct {}; */ template <typename VaType, VaType UnmappedVa, typename PaType, PaType UnmappedPa, bool PaContigSplit, size_t AddressSpaceBits, typename ExtraBlockInfo = EmptyStruct> -requires AddressSpaceValid<VaType, AddressSpaceBits> class FlatAddressSpaceMap { +requires AddressSpaceValid<VaType, AddressSpaceBits> +class FlatAddressSpaceMap { private: std::function<void(VaType, VaType)> unmapCallback{}; //!< Callback called when the mappings in an region have changed @@ -40,8 +41,8 @@ protected: Block() = default; - Block(VaType virt, PaType phys, ExtraBlockInfo extraInfo) - : virt(virt), phys(phys), extraInfo(extraInfo) {} + Block(VaType virt_, PaType phys_, ExtraBlockInfo extraInfo_) + : virt(virt_), phys(phys_), extraInfo(extraInfo_) {} constexpr bool Valid() { return virt != UnmappedVa; @@ -102,7 +103,8 @@ public: * initial, fast linear pass and a subsequent slower pass that iterates until it finds a free block */ template <typename VaType, VaType UnmappedVa, size_t AddressSpaceBits> -requires AddressSpaceValid<VaType, AddressSpaceBits> class FlatAllocator +requires AddressSpaceValid<VaType, AddressSpaceBits> +class FlatAllocator : public FlatAddressSpaceMap<VaType, UnmappedVa, bool, false, false, AddressSpaceBits> { private: using Base = FlatAddressSpaceMap<VaType, UnmappedVa, bool, false, false, AddressSpaceBits>; |