From c1973377797de1b89d3d007846dcc353eec0a7e3 Mon Sep 17 00:00:00 2001 From: jdh8d <jdh8d@git.zephyr-software.com> Date: Sun, 11 Oct 2015 16:27:56 +0000 Subject: [PATCH] fixed bytewidth=ArgSize for bit/byte number mismatch. Former-commit-id: 6af9715580a4d2e0ba09f9fe915ad4cdb786ce2c --- src/interfaces/irdb/STARS_IRDB_Op.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/irdb/STARS_IRDB_Op.cpp b/src/interfaces/irdb/STARS_IRDB_Op.cpp index cf15cb62..d49c1bb4 100644 --- a/src/interfaces/irdb/STARS_IRDB_Op.cpp +++ b/src/interfaces/irdb/STARS_IRDB_Op.cpp @@ -181,7 +181,7 @@ no operands for eflags or mxcsr? operand.mem.hasSIB=1; - byteWidth=the_arg.ArgSize; + byteWidth=the_arg.ArgSize/8; OpType=op_Mem; break; } @@ -189,13 +189,13 @@ no operands for eflags or mxcsr? OpType=op_Imm; operand.imm.imm=d.Instruction.Immediat; operand.imm.pc_rel=true; - byteWidth=the_arg.ArgSize; + byteWidth=the_arg.ArgSize/8; break; case CONSTANT_TYPE + ABSOLUTE_ : OpType=op_Imm; operand.imm.imm=d.Instruction.Immediat; operand.imm.pc_rel=false; - byteWidth=the_arg.ArgSize; + byteWidth=the_arg.ArgSize/8; break; default: assert(0); -- GitLab