From 747f7d65d8c7cc1be8d4005b11c69f0caa2a3b5d Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Thu, 11 May 2017 15:57:46 -0500 Subject: [PATCH] PPC-nativetests: Zero out the context between runs --- src/xenia/cpu/ppc/testing/ppc_testing_native_main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/cpu/ppc/testing/ppc_testing_native_main.cc b/src/xenia/cpu/ppc/testing/ppc_testing_native_main.cc index d83f56b61..04d950433 100644 --- a/src/xenia/cpu/ppc/testing/ppc_testing_native_main.cc +++ b/src/xenia/cpu/ppc/testing/ppc_testing_native_main.cc @@ -194,7 +194,6 @@ class TestRunner { } bool Setup(TestSuite& suite) { - // TODO: Load the test suite into memory. FILE* file = filesystem::OpenFile(suite.bin_file_path, "rb"); if (!file) { XELOGE("Failed to open file %ls!", suite.bin_file_path.c_str()); @@ -214,6 +213,8 @@ class TestRunner { fread(memory_, file_length, 1, file); fclose(file); + // Zero out the context + std::memset(context_, 0, sizeof(Context)); return true; }