From 9f8c6f60f577d7eb97f74ab8882a3e30cbc484c5 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 14 Jul 2018 08:49:27 +0100 Subject: [PATCH] fuzz_with_unicorn: Configure as per qemu max configuration --- tests/A64/fuzz_with_unicorn.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/A64/fuzz_with_unicorn.cpp b/tests/A64/fuzz_with_unicorn.cpp index 05407ddc..40ad89e4 100644 --- a/tests/A64/fuzz_with_unicorn.cpp +++ b/tests/A64/fuzz_with_unicorn.cpp @@ -160,7 +160,12 @@ static void RunTestInstance(const Unicorn::RegisterArray& regs, const Unicorn::V jit_env.modified_memory.clear(); uni_env.modified_memory.clear(); - static Dynarmic::A64::Jit jit{Dynarmic::A64::UserConfig{&jit_env}}; + Dynarmic::A64::UserConfig jit_user_config{&jit_env}; + // The below corresponds to the settings for qemu's aarch64_max_initfn + jit_user_config.dczid_el0 = 7; + jit_user_config.ctr_el0 = 0x80038003; + + static Dynarmic::A64::Jit jit{jit_user_config}; static Unicorn uni{uni_env}; jit.SetRegisters(regs);