This commit is contained in:
Nav
2024-11-17 16:15:13 +00:00
parent c14aab0fc4
commit f6819d35de
2 changed files with 3 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
#include <cstdint> #include <cstdint>
#include <optional> #include <optional>
#include <map> #include <map>
#include <utility>
#include "MemorySegment.hpp" #include "MemorySegment.hpp"
#include "src/Targets/TargetMemory.hpp" #include "src/Targets/TargetMemory.hpp"
@@ -27,14 +28,14 @@ namespace Targets::TargetDescription
TargetMemorySize size, TargetMemorySize size,
std::uint8_t unitSize, std::uint8_t unitSize,
const std::optional<TargetMemoryEndianness>& endianness, const std::optional<TargetMemoryEndianness>& endianness,
const std::map<std::string, MemorySegment, std::less<void>>& memorySegmentsByKey std::map<std::string, MemorySegment, std::less<void>>&& memorySegmentsByKey
) )
: key(key) : key(key)
, startAddress(startAddress) , startAddress(startAddress)
, size(size) , size(size)
, unitSize(unitSize) , unitSize(unitSize)
, endianness(endianness) , endianness(endianness)
, memorySegmentsByKey(memorySegmentsByKey) , memorySegmentsByKey(std::move(memorySegmentsByKey))
{} {}
std::optional<std::reference_wrapper<const MemorySegment>> tryGetMemorySegment(std::string_view key) const { std::optional<std::reference_wrapper<const MemorySegment>> tryGetMemorySegment(std::string_view key) const {

View File

@@ -615,7 +615,6 @@ namespace Targets::TargetDescription
static const auto typesByName = BiMap<std::string, TargetMemorySegmentType>{ static const auto typesByName = BiMap<std::string, TargetMemorySegmentType>{
{"gp_registers", TargetMemorySegmentType::GENERAL_PURPOSE_REGISTERS}, {"gp_registers", TargetMemorySegmentType::GENERAL_PURPOSE_REGISTERS},
{"aliased", TargetMemorySegmentType::ALIASED}, {"aliased", TargetMemorySegmentType::ALIASED},
{"regs", TargetMemorySegmentType::REGISTERS},
{"eeprom", TargetMemorySegmentType::EEPROM}, {"eeprom", TargetMemorySegmentType::EEPROM},
{"flash", TargetMemorySegmentType::FLASH}, {"flash", TargetMemorySegmentType::FLASH},
{"fuses", TargetMemorySegmentType::FUSES}, {"fuses", TargetMemorySegmentType::FUSES},