Tidying RISC-V register structs

This commit is contained in:
Nav
2024-09-04 00:13:55 +01:00
parent e327fe7826
commit 2a01f727bf
6 changed files with 49 additions and 55 deletions

View File

@@ -16,10 +16,8 @@ namespace DebugToolDrivers::Protocols::RiscVDebugSpec::DebugModule::Registers
MEMORY_ACCESS = 0x02,
};
std::uint32_t control = 0;
CommandType commandType = CommandType::REGISTER_ACCESS;
AbstractCommandRegister() = default;
std::uint32_t control;
CommandType commandType;
constexpr AbstractCommandRegister(std::uint32_t control, CommandType commandType)
: control(control)