First pass at RISC-V hardware breakpoints (Trigger module)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "src/DebugToolDrivers/Protocols/RiscVDebugSpec/TriggerModule/TriggerModule.hpp"
|
||||
|
||||
namespace DebugToolDrivers::Protocols::RiscVDebugSpec::TriggerModule::Registers
|
||||
{
|
||||
struct TriggerSelect
|
||||
{
|
||||
TriggerIndex index;
|
||||
|
||||
constexpr explicit TriggerSelect(TriggerIndex index)
|
||||
: index(index)
|
||||
{}
|
||||
|
||||
[[nodiscard]] constexpr RegisterValue value() const {
|
||||
return static_cast<RegisterValue>(this->index);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user