summaryrefslogtreecommitdiffstats
path: root/src/core/arm/interpreter
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-09-06 20:37:19 +0200
committerLioncash <mathew1800@gmail.com>2014-09-06 20:45:56 +0200
commit403c84cdabe0eab9b2ec1a1effdb9beac5d09853 (patch)
tree1f9c5fdc2f9b217ab881d8d822e66f482cd41b73 /src/core/arm/interpreter
parentMerge pull request #88 from archshift/remove-atomic (diff)
downloadyuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.tar
yuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.tar.gz
yuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.tar.bz2
yuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.tar.lz
yuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.tar.xz
yuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.tar.zst
yuzu-403c84cdabe0eab9b2ec1a1effdb9beac5d09853.zip
Diffstat (limited to 'src/core/arm/interpreter')
-rw-r--r--src/core/arm/interpreter/armsupp.cpp9
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 @@
//#include <util.h>
+#include <string>
#include "core/arm/interpreter/armdefs.h"
#include "core/arm/interpreter/armemu.h"
#include "core/hle/coprocessor.h"
@@ -870,12 +871,8 @@ ARMul_CDP (ARMul_State * state, ARMword instr)
void
ARMul_UndefInstr (ARMul_State * state, ARMword instr)
{
- /*SKYEYE_LOG_IN_CLR(RED, "In %s, line = %d, undef instr: 0x%x\n",
- __func__, __LINE__, instr);*/
- char buff[512];
- ARM_Disasm disasm = ARM_Disasm();
- disasm.disasm(state->pc, instr, buff);
- ERROR_LOG(ARM11, "Undefined instruction!! Disasm: %s Opcode: 0x%x", buff, instr);
+ std::string disasm = ARM_Disasm::Disassemble(state->pc, instr);
+ ERROR_LOG(ARM11, "Undefined instruction!! Disasm: %s Opcode: 0x%x", disasm.c_str(), instr);
ARMul_Abort (state, ARMul_UndefinedInstrV);
}