summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/RegisterView.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-06-13 14:10:10 +0000
committerhrydgard <hrydgard@gmail.com>2009-06-13 14:10:10 +0000
commit10442c8faa1e9d3f69496160a3d3ff9f0c321ee9 (patch)
treee59514e1173db34d7948f8281d62a2985957a16f /Source/Core/DebuggerWX/Src/RegisterView.cpp
parentdd640a49379c03088aef152a96fa832030aa1272 (diff)
PowerPC: Fixed moronic bug in mcrfs - together with correctly computing FPRF (which is a new option, slows down slightly) in a few ops this fixes most remaining math errors in Super Monkey Ball and eliminates the need for the HLE hacks. Make sure to have up-to-date gameconfigs. Unfortunately, F-Zero still doesn't work. Misc other small changes. Indent some code.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3426 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/RegisterView.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/RegisterView.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/DebuggerWX/Src/RegisterView.cpp b/Source/Core/DebuggerWX/Src/RegisterView.cpp
index 2444e98b96..3a4bd1124a 100644
--- a/Source/Core/DebuggerWX/Src/RegisterView.cpp
+++ b/Source/Core/DebuggerWX/Src/RegisterView.cpp
@@ -18,6 +18,7 @@
#include "Debugger.h"
#include "RegisterView.h"
#include "PowerPC/PowerPC.h"
+#include "HW/PeripheralInterface.h"
// F-zero 80005e60 wtf??
@@ -25,7 +26,7 @@ extern const char* GetGPRName(unsigned int index);
extern const char* GetFPRName(unsigned int index);
static const char *special_reg_names[] = {
- "PC", "LR", "CTR", "CR", "FPSCR", "SRR0", "SRR1",
+ "PC", "LR", "CTR", "CR", "FPSCR", "SRR0", "SRR1", "Exceptions", "Int Mask", "Int Cause",
};
static u32 GetSpecialRegValue(int reg) {
@@ -37,7 +38,10 @@ static u32 GetSpecialRegValue(int reg) {
case 4: return PowerPC::ppcState.fpscr;
case 5: return PowerPC::ppcState.spr[SPR_SRR0];
case 6: return PowerPC::ppcState.spr[SPR_SRR1];
- default: return 0;
+ case 7: return PowerPC::ppcState.Exceptions;
+ case 8: return CPeripheralInterface::GetMask();
+ case 9: return CPeripheralInterface::GetCause();
+ default: return 0;
}
}