diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-08-13 20:48:27 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-08-13 20:48:27 +0000 |
| commit | 2b8a85ac5a76f4d02bbf2b132fa9c43cd964b783 (patch) | |
| tree | c6c888b41a48beb0ccec62032e9d00cf336bb3ae /Source/Core/DebuggerWX/src | |
| parent | 8900114c2b24da748c7994c03d44c206499cb4bb (diff) | |
Yet another bunch of optimizations and cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@191 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src')
| -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);
|
