From a5e2116e12f0e45cd8335bf9552def0b6cf02549 Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 4 Aug 2016 19:35:46 -0400 Subject: [PATCH] fuzz_arm: Log write records on failure. --- tests/arm/fuzz_arm.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/arm/fuzz_arm.cpp b/tests/arm/fuzz_arm.cpp index 40a7e39b..d1c2431f 100644 --- a/tests/arm/fuzz_arm.cpp +++ b/tests/arm/fuzz_arm.cpp @@ -248,6 +248,16 @@ void FuzzJitArm(const size_t instruction_count, const size_t instructions_to_exe } printf("CPSR: %08x %08x %s\n", interp.Cpsr, jit.Cpsr(), interp.Cpsr != jit.Cpsr() ? "*" : ""); + printf("\nInterp Write Records:\n"); + for (auto& record : interp_write_records) { + printf("%zu [%x] = %llx" PRIu64 "\n", record.size, record.address, record.data); + } + + printf("\nJIT Write Records:\n"); + for (auto& record : jit_write_records) { + printf("%zu [%x] = %llx" PRIu64 "\n", record.size, record.address, record.data); + } + Dynarmic::Arm::LocationDescriptor descriptor = {0, false, false, 0}; Dynarmic::IR::Block ir_block = Dynarmic::Arm::Translate(descriptor, &MemoryRead32); Dynarmic::Optimization::GetSetElimination(ir_block);