RISC-V register access

This commit is contained in:
Nav
2023-11-23 16:32:53 +00:00
parent 522187382a
commit 257c316369
5 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
#include <cstdint>
#include "Registers/RegisterNumbers.hpp"
namespace Targets::RiscV
{
using RegisterValue = std::uint32_t;
enum class PrivilegeMode: std::uint8_t
{
U_MODE = 0x00,
S_MODE = 0x01,
M_MODE = 0x03,
};
}