diff options
Diffstat (limited to 'Source/Core/DebuggerWX')
| -rw-r--r-- | Source/Core/DebuggerWX/src/CodeWindow.cpp | 19 | ||||
| -rw-r--r-- | Source/Core/DebuggerWX/src/CodeWindow.h | 2 |
2 files changed, 21 insertions, 0 deletions
diff --git a/Source/Core/DebuggerWX/src/CodeWindow.cpp b/Source/Core/DebuggerWX/src/CodeWindow.cpp index 508cc62c2c..76fc8c60b6 100644 --- a/Source/Core/DebuggerWX/src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/src/CodeWindow.cpp @@ -40,6 +40,8 @@ #include "Debugger/PPCDebugInterface.h"
#include "Debugger/Debugger_SymbolMap.h"
#include "PowerPC/PPCAnalyst.h"
+#include "PowerPC/Jit64/Jit.h"
+#include "PowerPC/Jit64/JitCache.h"
#include "Core.h"
#include "LogManager.h"
@@ -235,6 +237,13 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam pSymbolsMenu->Append(IDM_SCANFUNCTIONS, _T("&Scan for functions"));
pMenuBar->Append(pSymbolsMenu, _T("&Symbols"));
}
+
+ {
+ wxMenu *pJitMenu = new wxMenu;
+ pJitMenu->Append(IDM_CLEARCODECACHE, _T("&Clear code cache"));
+ pMenuBar->Append(pJitMenu, _T("&JIT"));
+ }
+
SetMenuBar(pMenuBar);
}
@@ -256,6 +265,16 @@ void CCodeWindow::JumpToAddress(u32 _Address) codeview->Center(_Address);
}
+void CCodeWindow::OnJitMenu(wxCommandEvent& event)
+{
+ switch (event.GetId())
+ {
+ case IDM_CLEARCODECACHE:
+ Jit64::ClearCache();
+ break;
+ }
+}
+
void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
{
if (Core::GetState() == Core::CORE_UNINITIALIZED)
diff --git a/Source/Core/DebuggerWX/src/CodeWindow.h b/Source/Core/DebuggerWX/src/CodeWindow.h index c3b7ba12e7..8d8684f736 100644 --- a/Source/Core/DebuggerWX/src/CodeWindow.h +++ b/Source/Core/DebuggerWX/src/CodeWindow.h @@ -81,6 +81,7 @@ class CCodeWindow IDM_SCANFUNCTIONS,
IDM_LOADMAPFILE,
IDM_SAVEMAPFILE,
+ IDM_CLEARCODECACHE,
};
enum
@@ -125,6 +126,7 @@ class CCodeWindow void OnToggleMemoryWindow(wxCommandEvent& event);
void OnHostMessage(wxCommandEvent& event);
void OnSymbolsMenu(wxCommandEvent& event);
+ void OnJitMenu(wxCommandEvent& event);
void CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter);
|
