Stub out LDR/STR from SP

This commit is contained in:
Jeffrey Pfau 2013-04-09 23:37:28 -07:00
parent e3818cf7b6
commit 28ecc97671
1 changed files with 6 additions and 2 deletions

View File

@ -160,9 +160,11 @@ DEFINE_INSTRUCTION_WITH_HIGH_THUMB(MOV3, )
BODY;)
#define DEFINE_LOAD_WITH_IMMEDIATE_THUMB(NAME, BODY) \
COUNT_3(DEFINE_LOAD_WITH_IMMEDIATE_EX_THUMB, NAME ## 3_R, BODY)
COUNT_3(DEFINE_LOAD_WITH_IMMEDIATE_EX_THUMB, NAME ## _R, BODY)
DEFINE_LOAD_WITH_IMMEDIATE_THUMB(LDR, )
DEFINE_LOAD_WITH_IMMEDIATE_THUMB(LDR3, )
DEFINE_LOAD_WITH_IMMEDIATE_THUMB(LDR4, )
DEFINE_LOAD_WITH_IMMEDIATE_THUMB(STR3, )
#define DEFINE_LOAD_STORE_WITH_REGISTER_EX_THUMB(NAME, RM, BODY) \
DEFINE_INSTRUCTION_THUMB(NAME, \
@ -250,6 +252,8 @@ DEFINE_INSTRUCTION_THUMB(BX, )
APPLY(COUNT_5, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, LDRB1_)) \
APPLY(COUNT_5, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, STRH1_)) \
APPLY(COUNT_5, DUMMY, DECLARE_INSTRUCTION_THUMB(EMITTER, LDRH1_)) \
APPLY(COUNT_3, DUMMY_4, DECLARE_INSTRUCTION_THUMB(EMITTER, STR3_R)) \
APPLY(COUNT_3, DUMMY_4, DECLARE_INSTRUCTION_THUMB(EMITTER, LDR4_R)) \
static const ThumbInstruction _thumbTable[0x400] = {
DECLARE_THUMB_EMITTER_BLOCK(_ThumbInstruction)