Skip to content

Commit

Permalink
Xtensa: fix XTENSA_OP_GROUP_MEMOPERAND
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Sep 25, 2024
1 parent bf6f131 commit cc01c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/Xtensa/XtensaMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ void Xtensa_add_cs_detail(MCInst *MI, xtensa_op_group op_group, va_list args)
case XTENSA_OP_GROUP_MEMOPERAND: {
unsigned reg =
MCOperand_getReg(MCInst_getOperand(MI, (op_num)));
int64_t val =
int64_t imm8 =
MCOperand_getImm(MCInst_getOperand(MI, op_num + 1));
xop->type = XTENSA_OP_MEM;
xop->mem.base = reg;
xop->mem.disp = val;
xop->mem.disp = (uint8_t)imm8;
} break;
}

Expand Down

0 comments on commit cc01c04

Please sign in to comment.