Skip to content

Commit

Permalink
Fix compilation when combining “diet” and “x86_reduce”
Browse files Browse the repository at this point in the history
Not that it makes a whole lot of sense anyway.
  • Loading branch information
oleavr committed Jan 18, 2024
1 parent 25a69b5 commit abcb26a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/X86/X86GenAsmWriter1_reduce.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,9 @@ static void printInstruction(MCInst *MI, SStream *O)
// Emit the opcode for the instruction.
uint32_t Bits = 0;
Bits |= OpInfo0[opcode] << 0;
#ifndef CAPSTONE_DIET
SStream_concat0(O, AsmStrs+(Bits & 4095)-1);
#endif


// Fragment 0 encoded into 6 bits for 33 unique commands.
Expand Down
2 changes: 2 additions & 0 deletions arch/X86/X86IntelInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ static void printanymem(MCInst *MI, unsigned OpNo, SStream *O)
case X86_LEA64r:
MI->x86opsize = 8;
break;
#ifndef CAPSTONE_X86_REDUCE
case X86_BNDCL32rm:
case X86_BNDCN32rm:
case X86_BNDCU32rm:
Expand All @@ -1045,6 +1046,7 @@ static void printanymem(MCInst *MI, unsigned OpNo, SStream *O)
case X86_BNDCU64rm:
MI->x86opsize = 16;
break;
#endif
}

printMemReference(MI, OpNo, O);
Expand Down

0 comments on commit abcb26a

Please sign in to comment.