mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-26 23:10:32 +00:00
rename mapping.c, mapping.h, module.c to have arch prefix. suggested by Alex Ionescu
This commit is contained in:
parent
747c4eff69
commit
f328f30fd9
19
Makefile
19
Makefile
@ -53,36 +53,37 @@ ifneq (,$(findstring x86,$(CAPSTONE_ARCHS)))
|
||||
LIBOBJ += arch/X86/X86Disassembler.o
|
||||
LIBOBJ += arch/X86/X86IntelInstPrinter.o
|
||||
LIBOBJ += arch/X86/X86ATTInstPrinter.o
|
||||
LIBOBJ += arch/X86/mapping.o arch/X86/module.o
|
||||
LIBOBJ += arch/X86/X86Mapping.o
|
||||
LIBOBJ += arch/X86/X86Module.o
|
||||
endif
|
||||
ifneq (,$(findstring arm,$(CAPSTONE_ARCHS)))
|
||||
CFLAGS += -DCAPSTONE_HAS_ARM
|
||||
LIBOBJ += arch/ARM/ARMDisassembler.o
|
||||
LIBOBJ += arch/ARM/ARMInstPrinter.o
|
||||
LIBOBJ += arch/ARM/mapping.o
|
||||
LIBOBJ += arch/ARM/module.o
|
||||
LIBOBJ += arch/ARM/ARMMapping.o
|
||||
LIBOBJ += arch/ARM/ARMModule.o
|
||||
endif
|
||||
ifneq (,$(findstring mips,$(CAPSTONE_ARCHS)))
|
||||
CFLAGS += -DCAPSTONE_HAS_MIPS
|
||||
LIBOBJ += arch/Mips/MipsDisassembler.o
|
||||
LIBOBJ += arch/Mips/MipsInstPrinter.o
|
||||
LIBOBJ += arch/Mips/mapping.o
|
||||
LIBOBJ += arch/Mips/module.o
|
||||
LIBOBJ += arch/Mips/MipsMapping.o
|
||||
LIBOBJ += arch/Mips/MipsModule.o
|
||||
endif
|
||||
ifneq (,$(findstring powerpc,$(CAPSTONE_ARCHS)))
|
||||
CFLAGS += -DCAPSTONE_HAS_POWERPC
|
||||
LIBOBJ += arch/PowerPC/PPCDisassembler.o
|
||||
LIBOBJ += arch/PowerPC/PPCInstPrinter.o
|
||||
LIBOBJ += arch/PowerPC/mapping.o
|
||||
LIBOBJ += arch/PowerPC/module.o
|
||||
LIBOBJ += arch/PowerPC/PPCMapping.o
|
||||
LIBOBJ += arch/PowerPC/PPCModule.o
|
||||
endif
|
||||
ifneq (,$(findstring aarch64,$(CAPSTONE_ARCHS)))
|
||||
CFLAGS += -DCAPSTONE_HAS_ARM64
|
||||
LIBOBJ += arch/AArch64/AArch64BaseInfo.o
|
||||
LIBOBJ += arch/AArch64/AArch64Disassembler.o
|
||||
LIBOBJ += arch/AArch64/AArch64InstPrinter.o
|
||||
LIBOBJ += arch/AArch64/mapping.o
|
||||
LIBOBJ += arch/AArch64/module.o
|
||||
LIBOBJ += arch/AArch64/AArch64Mapping.o
|
||||
LIBOBJ += arch/AArch64/AArch64Module.o
|
||||
endif
|
||||
|
||||
LIBOBJ += MCInst.o
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "../../MathExtras.h"
|
||||
|
||||
#include "mapping.h"
|
||||
#include "AArch64Mapping.h"
|
||||
|
||||
static char *getRegisterName(unsigned RegNo);
|
||||
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O);
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "../../include/arm64.h"
|
||||
#include "../../utils.h"
|
||||
|
||||
#include "mapping.h"
|
||||
#include "AArch64Mapping.h"
|
||||
|
||||
#define GET_INSTRINFO_ENUM
|
||||
#include "AArch64GenInstrInfo.inc"
|
@ -5,7 +5,7 @@
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "AArch64Disassembler.h"
|
||||
#include "AArch64InstPrinter.h"
|
||||
#include "mapping.h"
|
||||
#include "AArch64Mapping.h"
|
||||
|
||||
void enable_arm64() {}
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "../../SStream.h"
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "../../utils.h"
|
||||
#include "mapping.h"
|
||||
#include "ARMMapping.h"
|
||||
|
||||
#define GET_SUBTARGETINFO_ENUM
|
||||
#include "ARMGenSubtargetInfo.inc"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "../../include/arm.h"
|
||||
#include "../../cs_priv.h"
|
||||
|
||||
#include "mapping.h"
|
||||
#include "ARMMapping.h"
|
||||
|
||||
#define GET_INSTRINFO_ENUM
|
||||
#include "ARMGenInstrInfo.inc"
|
@ -5,7 +5,7 @@
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "ARMDisassembler.h"
|
||||
#include "ARMInstPrinter.h"
|
||||
#include "mapping.h"
|
||||
#include "ARMMapping.h"
|
||||
|
||||
static cs_err init(cs_struct *ud)
|
||||
{
|
@ -24,7 +24,7 @@
|
||||
#include "../../utils.h"
|
||||
#include "../../SStream.h"
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "mapping.h"
|
||||
#include "MipsMapping.h"
|
||||
|
||||
#include "MipsInstPrinter.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "../../include/mips.h"
|
||||
#include "../../utils.h"
|
||||
|
||||
#include "mapping.h"
|
||||
#include "MipsMapping.h"
|
||||
|
||||
#define GET_INSTRINFO_ENUM
|
||||
#include "MipsGenInstrInfo.inc"
|
@ -5,7 +5,7 @@
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "MipsDisassembler.h"
|
||||
#include "MipsInstPrinter.h"
|
||||
#include "mapping.h"
|
||||
#include "MipsMapping.h"
|
||||
|
||||
void enable_mips() {};
|
||||
|
@ -25,9 +25,9 @@
|
||||
#include "../../SStream.h"
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "../../MathExtras.h"
|
||||
#include "mapping.h"
|
||||
#include "PPCMapping.h"
|
||||
|
||||
//#include "mapping.h"
|
||||
//#include "PPCMapping.h"
|
||||
|
||||
static const char *getRegisterName(unsigned RegNo);
|
||||
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O);
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "../../include/ppc.h"
|
||||
#include "../../utils.h"
|
||||
|
||||
#include "mapping.h"
|
||||
#include "PPCMapping.h"
|
||||
|
||||
#define GET_INSTRINFO_ENUM
|
||||
#include "PPCGenInstrInfo.inc"
|
@ -5,7 +5,7 @@
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "PPCDisassembler.h"
|
||||
#include "PPCInstPrinter.h"
|
||||
#include "mapping.h"
|
||||
#include "PPCMapping.h"
|
||||
|
||||
void enable_powerpc() {};
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "../../MCInst.h"
|
||||
#include "../../SStream.h"
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "mapping.h"
|
||||
#include "X86Mapping.h"
|
||||
|
||||
#define markup(x) ""
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "X86DisassemblerDecoderCommon.h"
|
||||
#include "X86DisassemblerDecoder.h"
|
||||
#include "../../MCInst.h"
|
||||
#include "mapping.h"
|
||||
#include "X86Mapping.h"
|
||||
|
||||
#define GET_REGINFO_ENUM
|
||||
#include "X86GenRegisterInfo.inc"
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "../../SStream.h"
|
||||
#include "../../MCRegisterInfo.h"
|
||||
|
||||
#include "mapping.h"
|
||||
#include "X86Mapping.h"
|
||||
|
||||
static void printMemReference(MCInst *MI, unsigned Op, SStream *O);
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "mapping.h"
|
||||
#include "X86Mapping.h"
|
||||
#include "X86DisassemblerDecoder.h"
|
||||
|
||||
#include "../../utils.h"
|
@ -5,7 +5,7 @@
|
||||
#include "../../MCRegisterInfo.h"
|
||||
#include "X86Disassembler.h"
|
||||
#include "X86InstPrinter.h"
|
||||
#include "mapping.h"
|
||||
#include "X86Mapping.h"
|
||||
|
||||
void enable_x86() {};
|
||||
|
Loading…
Reference in New Issue
Block a user