mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-02 04:34:43 +01:00
tests/A64: Fuzz against unicorn
This commit is contained in:
parent
a0ef6eda19
commit
d5725de26a
10 changed files with 569 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ static Dynarmic::A32::UserCallbacks GetUserCallbacks() {
|
|||
return user_callbacks;
|
||||
}
|
||||
|
||||
namespace {
|
||||
struct InstructionGenerator final {
|
||||
public:
|
||||
InstructionGenerator(const char* format, std::function<bool(u32)> is_valid = [](u32){ return true; }) : is_valid(is_valid) {
|
||||
|
|
@ -207,6 +208,7 @@ private:
|
|||
u32 mask = 0;
|
||||
std::function<bool(u32)> is_valid;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
static bool DoesBehaviorMatch(const ARMul_State& interp, const Dynarmic::A32::Jit& jit, const std::vector<WriteRecord>& interp_write_records, const std::vector<WriteRecord>& jit_write_records) {
|
||||
return interp.Reg == jit.Regs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue