[dynarmic] fix unreachable macro and unicorn tests
This commit is contained in:
parent
0857b1710c
commit
5450e63bb9
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ template<typename... Ts>
|
||||||
}())
|
}())
|
||||||
|
|
||||||
#define ASSERT(_a_) ASSERT_MSG(_a_, "")
|
#define ASSERT(_a_) ASSERT_MSG(_a_, "")
|
||||||
#define UNREACHABLE() ASSERT(false, "unreachable")
|
#define UNREACHABLE() ASSERT_MSG(false, "unreachable")
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
||||||
#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
|
#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
|
||||||
|
|
|
@ -173,7 +173,7 @@ void A64Unicorn::InterruptHook(uc_engine* uc, u32 int_number, void* user_data) {
|
||||||
auto* this_ = static_cast<A64Unicorn*>(user_data);
|
auto* this_ = static_cast<A64Unicorn*>(user_data);
|
||||||
|
|
||||||
u32 esr;
|
u32 esr;
|
||||||
CHECKED(uc_reg_read(uc, UC_ARM64_REG_ESR, &esr));
|
CHECKED(uc_reg_read(uc, UC_ARM64_REG_ESR_EL0, &esr));
|
||||||
|
|
||||||
auto ec = esr >> 26;
|
auto ec = esr >> 26;
|
||||||
auto iss = esr & 0xFFFFFF;
|
auto iss = esr & 0xFFFFFF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue