Projects
Eulaceura:Factory
capstone
_service:obs_scm:backport-Fix-compilation-with-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-Fix-compilation-with-DIET-X86_REDUCE.patch of Package capstone
From 11f437a1d9368f87cc818c3ba6de161e4eb1e39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= <oleavr@gmail.com> Date: Thu, 12 Nov 2020 01:48:01 +0100 Subject: [PATCH] Fix compilation with DIET + X86_REDUCE --- arch/X86/X86GenAsmWriter1_reduce.inc | 2 ++ arch/X86/X86IntelInstPrinter.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/X86/X86GenAsmWriter1_reduce.inc b/arch/X86/X86GenAsmWriter1_reduce.inc index 801dd289d4..f205dd4ecf 100644 --- a/arch/X86/X86GenAsmWriter1_reduce.inc +++ b/arch/X86/X86GenAsmWriter1_reduce.inc @@ -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. diff --git a/arch/X86/X86IntelInstPrinter.c b/arch/X86/X86IntelInstPrinter.c index 8b2cb5909f..9592e3067d 100644 --- a/arch/X86/X86IntelInstPrinter.c +++ b/arch/X86/X86IntelInstPrinter.c @@ -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: @@ -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);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2