From d05c1b257ce0a8f9c562b6aea079e45daa3e06e2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 20 May 2018 14:21:17 -0400 Subject: [PATCH] Interpreter_LoadStore: No-op dcbt and dcbtst if HID0.NOOPTI is set If HID0.NOOPTI is set, then dcbt and dcbtst are no-oped globally. We currently don't perform data cache emulation, but we put this in anyway so this detail isn't forgotten about if data cache emulation is introduced at some point in the future. --- .../Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp index 901d9feb00..7848a7fdb3 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp @@ -499,11 +499,17 @@ void Interpreter::dcbst(UGeckoInstruction inst) void Interpreter::dcbt(UGeckoInstruction inst) { + if (HID0.NOOPTI) + return; + // TODO: Implement some sort of L2 emulation. } void Interpreter::dcbtst(UGeckoInstruction inst) { + if (HID0.NOOPTI) + return; + // TODO: Implement some sort of L2 emulation. }