diff options
| author | 2018-08-07 03:01:24 +0100 | |
|---|---|---|
| committer | 2018-08-06 22:01:24 -0400 | |
| commit | e2b74f635410891b4ab9c202ecdd83dfe05df239 (patch) | |
| tree | 90cf31b4b0f60d86709bfec1a3c021056bd0a269 /src/core/core.h | |
| parent | Merge pull request #943 from lioncash/decl (diff) | |
| download | yuzu-e2b74f635410891b4ab9c202ecdd83dfe05df239.tar.gz yuzu-e2b74f635410891b4ab9c202ecdd83dfe05df239.tar.xz yuzu-e2b74f635410891b4ab9c202ecdd83dfe05df239.zip | |
GDBStub works with both Unicorn and Dynarmic now (#941)
* GDBStub works with both Unicorn and Dynarmic now
* Tidy up
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 11 |
1 files changed, 11 insertions, 0 deletions
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: | |||
| 82 | */ | 82 | */ |
| 83 | ResultStatus SingleStep(); | 83 | ResultStatus SingleStep(); |
| 84 | 84 | ||
| 85 | /** | ||
| 86 | * Invalidate the CPU instruction caches | ||
| 87 | * This function should only be used by GDB Stub to support breakpoints, memory updates and | ||
| 88 | * step/continue commands. | ||
| 89 | */ | ||
| 90 | void InvalidateCpuInstructionCaches() { | ||
| 91 | for (auto& cpu : cpu_cores) { | ||
| 92 | cpu->ArmInterface().ClearInstructionCache(); | ||
| 93 | } | ||
| 94 | } | ||
| 95 | |||
| 85 | /// Shutdown the emulated system. | 96 | /// Shutdown the emulated system. |
| 86 | void Shutdown(); | 97 | void Shutdown(); |
| 87 | 98 | ||