ARM: Fix warning spew

This commit is contained in:
Vicki Pfau 2022-05-27 00:42:02 -07:00
parent 4c1d44692c
commit a7710ed8d5
1 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ ATTRIBUTE_NOINLINE static void _neutralS(struct ARMCore* cpu, int32_t d) {
SHIFTER(cpu, opcode); \ SHIFTER(cpu, opcode); \
int rd = (opcode >> 12) & 0xF; \ int rd = (opcode >> 12) & 0xF; \
int rn = (opcode >> 16) & 0xF; \ int rn = (opcode >> 16) & 0xF; \
int32_t n = cpu->gprs[rn]; \ int32_t n ATTRIBUTE_UNUSED = cpu->gprs[rn]; \
if (UNLIKELY(rn == ARM_PC && (opcode & 0x02000010) == 0x00000010)) { \ if (UNLIKELY(rn == ARM_PC && (opcode & 0x02000010) == 0x00000010)) { \
n += WORD_SIZE_ARM; \ n += WORD_SIZE_ARM; \
} \ } \
@ -358,7 +358,7 @@ ATTRIBUTE_NOINLINE static void _neutralS(struct ARMCore* cpu, int32_t d) {
uint32_t address; \ uint32_t address; \
int rn = (opcode >> 16) & 0xF; \ int rn = (opcode >> 16) & 0xF; \
int rd = (opcode >> 12) & 0xF; \ int rd = (opcode >> 12) & 0xF; \
int32_t d = cpu->gprs[rd]; \ int32_t d ATTRIBUTE_UNUSED = cpu->gprs[rd]; \
if (UNLIKELY(rd == ARM_PC)) { \ if (UNLIKELY(rd == ARM_PC)) { \
d += WORD_SIZE_ARM; \ d += WORD_SIZE_ARM; \
} \ } \