fix some issues introduced by MSVC port
This commit is contained in:
parent
2be19c40c1
commit
b57c90dd23
|
@ -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 },
|
{ 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
|
// given internal insn id, return public instruction info
|
||||||
void PPC_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
|
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
|
// 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)
|
const char *PPC_insn_name(csh handle, unsigned int id)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ extern "C" {
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4201)
|
#pragma warning(disable:4201)
|
||||||
#endif _MSC_VER
|
#endif
|
||||||
|
|
||||||
//> Operand type for instruction's operands
|
//> Operand type for instruction's operands
|
||||||
typedef enum mips_op_type {
|
typedef enum mips_op_type {
|
||||||
|
|
Loading…
Reference in New Issue