Stub out BKPT (not in ARMv4T, but still useful)
Jeffrey Pfau jeffrey@endrift.com
Wed, 10 Apr 2013 20:50:56 -0700
2 files changed,
4 insertions(+),
1 deletions(-)
M
src/isa-arm.c
→
src/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.c
→
src/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)