fix some issues introduced by MSVC port

_v3_old
Nguyen Anh Quynh 11 years ago
parent 2be19c40c1
commit b57c90dd23
  1. 8
      arch/PowerPC/PPCMapping.c
  2. 2
      include/mips.h

@ -914,7 +914,9 @@ static insn_map insns[] = {
{ PPC_gBCLRL, PPC_INS_BCLRL, { PPC_REG_CTR, PPC_REG_LR, PPC_REG_RM, 0 }, { PPC_REG_LR, PPC_REG_CTR, 0 }, { 0 }, 0, 0 },
};
static insn_map alias_insns[] = {0, 0, {0}, {0}, {0}, 0, 0};
static insn_map alias_insns[] = {
{ 0, 0, { 0 }, { 0 }, { 0 }, 0, 0 },
};
// given internal insn id, return public instruction info
void PPC_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
@ -1430,7 +1432,9 @@ static name_map insn_name_maps[] = {
};
// special alias insn
static name_map alias_insn_names[] = {0, 0};
static name_map alias_insn_names[] = {
{ 0, NULL }
};
const char *PPC_insn_name(csh handle, unsigned int id)
{

@ -13,7 +13,7 @@ extern "C" {
#ifdef _MSC_VER
#pragma warning(disable:4201)
#endif _MSC_VER
#endif
//> Operand type for instruction's operands
typedef enum mips_op_type {

Loading…
Cancel
Save