chore: enclose everything in namespace matar

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-21 10:52:40 +05:30
parent 1eb4a9545b
commit 1e8966553f
20 changed files with 61 additions and 17 deletions

View File

@@ -1,8 +1,10 @@
#pragma once
#include "arm/instruction.hh"
#include "utility.hh"
#include <cstdint>
namespace matar {
class Psr {
public:
// clear the reserved bits i.e, [8:27]
@@ -45,7 +47,7 @@ class Psr {
#undef GET_SET_NTH_BIT_FUNCTIONS
bool condition(Condition cond) const;
bool condition(arm::Condition cond) const;
private:
static constexpr uint32_t PSR_CLEAR_RESERVED = 0xF00000FF;
@@ -53,3 +55,4 @@ class Psr {
uint32_t psr;
};
}