early-access version 2687

This commit is contained in:
pineappleEA
2022-04-20 01:28:43 +02:00
parent cd45d7e9d5
commit 8aa17b7ffc
251 changed files with 4148 additions and 1023 deletions

View File

@@ -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;

View File

@@ -16,8 +16,9 @@
# include <unicorn/unicorn.h>
#endif
#include <mcl/stdint.hpp>
#include "../A32/testenv.h"
#include "dynarmic/common/common_types.h"
namespace Unicorn::A32 {
static constexpr size_t num_gprs = 16;

View File

@@ -5,7 +5,7 @@
#include "./a64_unicorn.h"
#include "dynarmic/common/assert.h"
#include <mcl/assert.hpp>
#define CHECKED(expr) \
do { \

View File

@@ -16,8 +16,9 @@
# include <unicorn/unicorn.h>
#endif
#include <mcl/stdint.hpp>
#include "../A64/testenv.h"
#include "dynarmic/common/common_types.h"
class A64Unicorn final {
public: