From 9b06a938a910d10b588f8bf3a9a052d5f90c99be Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Jun 2020 18:43:44 -0400 Subject: [PATCH] fuzz_arm: Ignore endian bit A recent change from Qemu (268b1b3dfbb92a9348406f728a33f39e3d8dcd8) allows user space modification of the E bit. --- tests/A32/fuzz_arm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/A32/fuzz_arm.cpp b/tests/A32/fuzz_arm.cpp index 6731f119..8a5565fa 100644 --- a/tests/A32/fuzz_arm.cpp +++ b/tests/A32/fuzz_arm.cpp @@ -263,7 +263,7 @@ static void RunTestInstance(Dynarmic::A32::Jit& jit, A32Unicorn& uni REQUIRE(uni.GetRegisters() == jit.Regs()); REQUIRE(uni.GetExtRegs() == jit.ExtRegs()); - REQUIRE((uni.GetCpsr() & ~(1 << 5)) == (jit.Cpsr() & ~(1 << 5))); + REQUIRE((uni.GetCpsr() & 0xFFFFFDDF) == (jit.Cpsr() & 0xFFFFFDDF)); REQUIRE((uni.GetFpscr() & 0xF0000000) == (jit.Fpscr() & 0xF0000000)); REQUIRE(uni_env.modified_memory == jit_env.modified_memory); REQUIRE(uni_env.interrupts.empty());