aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/unicorn_emu/a32_unicorn.cpp
diff options
context:
space:
mode:
authorMerry <[email protected]>2022-04-19 15:36:26 +0100
committerMerry <[email protected]>2022-04-19 18:05:04 +0100
commit78b4ba10c930e7bb2d9b358916467f73053d45c7 (patch)
treefc031651bc03cd9d9bf75faab8fa1db5ece4a47f /tests/unicorn_emu/a32_unicorn.cpp
parented9955891f4b276888fa91ef1b0933a47fcae155 (diff)
downloaddynarmic-78b4ba10c930e7bb2d9b358916467f73053d45c7.tar.gz
dynarmic-78b4ba10c930e7bb2d9b358916467f73053d45c7.zip
Migrate to mcl
Diffstat (limited to 'tests/unicorn_emu/a32_unicorn.cpp')
-rw-r--r--tests/unicorn_emu/a32_unicorn.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unicorn_emu/a32_unicorn.cpp b/tests/unicorn_emu/a32_unicorn.cpp
index d9a68662..f3ffa0da 100644
--- a/tests/unicorn_emu/a32_unicorn.cpp
+++ b/tests/unicorn_emu/a32_unicorn.cpp
@@ -7,9 +7,10 @@
#include <type_traits>
+#include <mcl/assert.hpp>
+#include <mcl/bit/bit_field.hpp>
+
#include "../A32/testenv.h"
-#include "dynarmic/common/assert.h"
-#include "dynarmic/common/bit_util.h"
#define CHECKED(expr) \
do { \
@@ -60,7 +61,7 @@ void A32Unicorn<TestEnvironment>::Run() {
}
}
- const bool T = Dynarmic::Common::Bit<5>(GetCpsr());
+ const bool T = mcl::bit::get_bit<5>(GetCpsr());
const u32 new_pc = GetPC() | (T ? 1 : 0);
SetPC(new_pc);
}
@@ -262,7 +263,7 @@ void A32Unicorn<TestEnvironment>::InterruptHook(uc_engine* /*uc*/, u32 int_numbe
auto* this_ = static_cast<A32Unicorn*>(user_data);
u32 esr = 0;
- //CHECKED(uc_reg_read(uc, UC_ARM_REG_ESR, &esr));
+ // CHECKED(uc_reg_read(uc, UC_ARM_REG_ESR, &esr));
auto ec = esr >> 26;
auto iss = esr & 0xFFFFFF;