diff options
Diffstat (limited to 'src/core/arm/interpreter/armsupp.cpp')
| -rw-r--r-- | src/core/arm/interpreter/armsupp.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/arm/interpreter/armsupp.cpp b/src/core/arm/interpreter/armsupp.cpp index 219ba78ce..3d3545c65 100644 --- a/src/core/arm/interpreter/armsupp.cpp +++ b/src/core/arm/interpreter/armsupp.cpp | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | //#include <util.h> | 18 | //#include <util.h> |
| 19 | 19 | ||
| 20 | #include <string> | ||
| 20 | #include "core/arm/interpreter/armdefs.h" | 21 | #include "core/arm/interpreter/armdefs.h" |
| 21 | #include "core/arm/interpreter/armemu.h" | 22 | #include "core/arm/interpreter/armemu.h" |
| 22 | #include "core/hle/coprocessor.h" | 23 | #include "core/hle/coprocessor.h" |
| @@ -870,12 +871,8 @@ ARMul_CDP (ARMul_State * state, ARMword instr) | |||
| 870 | void | 871 | void |
| 871 | ARMul_UndefInstr (ARMul_State * state, ARMword instr) | 872 | ARMul_UndefInstr (ARMul_State * state, ARMword instr) |
| 872 | { | 873 | { |
| 873 | /*SKYEYE_LOG_IN_CLR(RED, "In %s, line = %d, undef instr: 0x%x\n", | 874 | std::string disasm = ARM_Disasm::Disassemble(state->pc, instr); |
| 874 | __func__, __LINE__, instr);*/ | 875 | ERROR_LOG(ARM11, "Undefined instruction!! Disasm: %s Opcode: 0x%x", disasm.c_str(), instr); |
| 875 | char buff[512]; | ||
| 876 | ARM_Disasm disasm = ARM_Disasm(); | ||
| 877 | disasm.disasm(state->pc, instr, buff); | ||
| 878 | ERROR_LOG(ARM11, "Undefined instruction!! Disasm: %s Opcode: 0x%x", buff, instr); | ||
| 879 | ARMul_Abort (state, ARMul_UndefinedInstrV); | 876 | ARMul_Abort (state, ARMul_UndefinedInstrV); |
| 880 | } | 877 | } |
| 881 | 878 | ||