ARM: Don't force passed opcodes to be truncated

This commit is contained in:
Vicki Pfau 2018-06-13 18:42:18 -07:00
parent f8759a8760
commit bfe7438929
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ CXX_GUARD_START
struct ARMCore;
typedef void (*ThumbInstruction)(struct ARMCore*, uint16_t opcode);
typedef void (*ThumbInstruction)(struct ARMCore*, unsigned opcode);
extern const ThumbInstruction _thumbTable[0x400];
CXX_GUARD_END

View File

@ -48,7 +48,7 @@
currentCycles += cpu->memory.activeNonseqCycles16 - cpu->memory.activeSeqCycles16;
#define DEFINE_INSTRUCTION_THUMB(NAME, BODY) \
static void _ThumbInstruction ## NAME (struct ARMCore* cpu, uint16_t opcode) { \
static void _ThumbInstruction ## NAME (struct ARMCore* cpu, unsigned opcode) { \
int currentCycles = THUMB_PREFETCH_CYCLES; \
BODY; \
cpu->cycles += currentCycles; \