all repos — mgba @ 0db11ec6bbb812b4b5fc6f5732db342afe042d77

mGBA Game Boy Advance Emulator

Stub out BKPT (not in ARMv4T, but still useful)
Jeffrey Pfau jeffrey@endrift.com
Wed, 10 Apr 2013 20:50:56 -0700
commit

0db11ec6bbb812b4b5fc6f5732db342afe042d77

parent

5e78400a25f15906c8ba48fc222e42d7a3bf2cb4

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/isa-arm.csrc/isa-arm.c

@@ -417,6 +417,7 @@

// End branch definitions // TODO +DEFINE_INSTRUCTION_ARM(BKPT,) DEFINE_INSTRUCTION_ARM(ILL,) // Illegal opcode DEFINE_INSTRUCTION_ARM(MSR, \

@@ -538,7 +539,7 @@ DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \

DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \ DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \ DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \ - DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \ + DECLARE_INSTRUCTION_ARM(EMITTER, BKPT), \ DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \ DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \ DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
M src/isa-thumb.csrc/isa-thumb.c

@@ -197,6 +197,7 @@ DEFINE_INSTRUCTION_THUMB(PUSH, )

DEFINE_INSTRUCTION_THUMB(PUSHR, ) DEFINE_INSTRUCTION_THUMB(ILL, ) +DEFINE_INSTRUCTION_THUMB(BKPT, ) DEFINE_INSTRUCTION_THUMB(BX, ) #define DECLARE_INSTRUCTION_THUMB(EMITTER, NAME) \

@@ -283,6 +284,7 @@ DO_8(DECLARE_INSTRUCTION_THUMB(EMITTER, ILL)), \

DO_8(DECLARE_INSTRUCTION_THUMB(EMITTER, ILL)), \ DO_4(DECLARE_INSTRUCTION_THUMB(EMITTER, POP)), \ DO_4(DECLARE_INSTRUCTION_THUMB(EMITTER, POPR)), \ + DO_4(DECLARE_INSTRUCTION_THUMB(EMITTER, BKPT)), \ static const ThumbInstruction _thumbTable[0x400] = { DECLARE_THUMB_EMITTER_BLOCK(_ThumbInstruction)