From e2b74f635410891b4ab9c202ecdd83dfe05df239 Mon Sep 17 00:00:00 2001 From: Hedges Date: Tue, 7 Aug 2018 03:01:24 +0100 Subject: GDBStub works with both Unicorn and Dynarmic now (#941) * GDBStub works with both Unicorn and Dynarmic now * Tidy up --- src/core/core.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/core.h') diff --git a/src/core/core.h b/src/core/core.h index a3be88aa8..c8ca4b247 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -82,6 +82,17 @@ public: */ ResultStatus SingleStep(); + /** + * Invalidate the CPU instruction caches + * This function should only be used by GDB Stub to support breakpoints, memory updates and + * step/continue commands. + */ + void InvalidateCpuInstructionCaches() { + for (auto& cpu : cpu_cores) { + cpu->ArmInterface().ClearInstructionCache(); + } + } + /// Shutdown the emulated system. void Shutdown(); -- cgit v1.2.3