This commit is contained in:
Nav
2024-03-29 16:31:14 +00:00
parent 779a5ad151
commit ed54b0e726
7 changed files with 11 additions and 11 deletions

View File

@@ -22,8 +22,6 @@ namespace Targets::RiscV::DebugModule::Registers
bool postIncrement:1 = false;
RegisterSize size:3 = RegisterSize::SIZE_32;
RegisterAccessControlField() = default;
RegisterAccessControlField(
RegisterNumber registerNumber,
bool write,
@@ -49,7 +47,7 @@ namespace Targets::RiscV::DebugModule::Registers
, size(static_cast<RegisterSize>((controlValue >> 20) & 0x07))
{}
constexpr std::uint32_t value() const {
[[nodiscard]] constexpr std::uint32_t value() const {
return std::uint32_t{0}
| static_cast<std::uint32_t>(this->registerNumber)
| static_cast<std::uint32_t>(this->write) << 16