mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-01 17:11:51 +00:00
Add mask while parsing RAnalop.dst/src
This commit is contained in:
parent
47f0788cf0
commit
b698d5d2ff
@ -2757,7 +2757,7 @@ static void set_opdir(RAnalOp *op) {
|
||||
|
||||
static void op_fillval(RAnalOp *op , csh handle, cs_insn *insn, int bits) {
|
||||
static RRegItem reg;
|
||||
switch (op->type) {
|
||||
switch (op->type & R_ANAL_OP_TYPE_MASK) {
|
||||
case R_ANAL_OP_TYPE_LOAD:
|
||||
op->src[0] = r_anal_value_new ();
|
||||
ZERO_FILL (reg);
|
||||
|
@ -99,7 +99,7 @@ static int parse_reg_name(RRegItem *reg, csh handle, cs_insn *insn, int reg_num)
|
||||
|
||||
static void op_fillval(RAnalOp *op, csh handle, cs_insn *insn) {
|
||||
static RRegItem reg;
|
||||
switch (op->type) {
|
||||
switch (op->type & R_ANAL_OP_TYPE_MASK) {
|
||||
case R_ANAL_OP_TYPE_MOV:
|
||||
ZERO_FILL (reg);
|
||||
if (OPERAND(1).type == M68K_OP_MEM) {
|
||||
|
@ -609,7 +609,7 @@ static int parse_reg_name(RRegItem *reg, csh handle, cs_insn *insn, int reg_num)
|
||||
|
||||
static void op_fillval(RAnal *anal, RAnalOp *op, csh *handle, cs_insn *insn) {
|
||||
static RRegItem reg;
|
||||
switch (op->type) {
|
||||
switch (op->type & R_ANAL_OP_TYPE_MASK) {
|
||||
case R_ANAL_OP_TYPE_LOAD:
|
||||
if (OPERAND(1).type == MIPS_OP_MEM) {
|
||||
ZERO_FILL (reg);
|
||||
|
@ -564,7 +564,7 @@ static int parse_reg_name(RRegItem *reg, csh handle, cs_insn *insn, int reg_num)
|
||||
|
||||
static void op_fillval(RAnalOp *op, csh handle, cs_insn *insn) {
|
||||
static RRegItem reg;
|
||||
switch (op->type) {
|
||||
switch (op->type & R_ANAL_OP_TYPE_MASK) {
|
||||
case R_ANAL_OP_TYPE_LOAD:
|
||||
if (INSOP(1).type == PPC_OP_MEM) {
|
||||
ZERO_FILL (reg);
|
||||
|
@ -74,7 +74,7 @@ static int parse_reg_name(RRegItem *reg, csh handle, cs_insn *insn, int reg_num)
|
||||
|
||||
static void op_fillval(RAnalOp *op, csh handle, cs_insn *insn) {
|
||||
static RRegItem reg;
|
||||
switch (op->type) {
|
||||
switch (op->type & R_ANAL_OP_TYPE_MASK) {
|
||||
case R_ANAL_OP_TYPE_LOAD:
|
||||
if (INSOP(0).type == SPARC_OP_MEM) {
|
||||
ZERO_FILL (reg);
|
||||
|
@ -1678,7 +1678,7 @@ static void op_fillval (RAnal *a, RAnalOp *op, csh *handle, cs_insn *insn){
|
||||
};
|
||||
static RRegItem regs[2];
|
||||
|
||||
switch (op->type) {
|
||||
switch (op->type & R_ANAL_OP_TYPE_MASK) {
|
||||
case R_ANAL_OP_TYPE_MOV:
|
||||
case R_ANAL_OP_TYPE_CMP:
|
||||
case R_ANAL_OP_TYPE_LEA:
|
||||
|
Loading…
x
Reference in New Issue
Block a user