Lines Matching refs:inst_bytes

263 InstructionLengthDecode(const uint8_t *inst_bytes, int bytes_len,  in InstructionLengthDecode()  argument
277 ret.primary_opcode = inst_bytes[op_idx]; in InstructionLengthDecode()
321 if (!is_exec_mode_64b && (inst_bytes[op_idx + 1] & 0xc0) != 0xc0) { in InstructionLengthDecode()
327 ret.primary_opcode = inst_bytes[op_idx + 2]; in InstructionLengthDecode()
328 ret.modrm = inst_bytes[op_idx + 3]; in InstructionLengthDecode()
332 if (!is_exec_mode_64b && (inst_bytes[op_idx + 1] & 0xc0) != 0xc0) { in InstructionLengthDecode()
336 ret.opcode_len = inst_bytes[op_idx + 1] & 0x1f; in InstructionLengthDecode()
337 ret.primary_opcode = inst_bytes[op_idx + 3]; in InstructionLengthDecode()
338 ret.modrm = inst_bytes[op_idx + 4]; in InstructionLengthDecode()
343 if (!is_exec_mode_64b && (inst_bytes[op_idx + 1] & 0xc0) != 0xc0) { in InstructionLengthDecode()
347 ret.opcode_len = inst_bytes[op_idx + 1] & 0x03; in InstructionLengthDecode()
348 ret.primary_opcode = inst_bytes[op_idx + 4]; in InstructionLengthDecode()
349 ret.modrm = inst_bytes[op_idx + 5]; in InstructionLengthDecode()
358 ret.primary_opcode = inst_bytes[op_idx]; in InstructionLengthDecode()
359 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
364 ret.primary_opcode = inst_bytes[++op_idx]; // get the next byte in InstructionLengthDecode()
368 ret.primary_opcode = inst_bytes[++op_idx]; // get the next byte in InstructionLengthDecode()
369 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
372 ret.primary_opcode = inst_bytes[++op_idx]; in InstructionLengthDecode()
373 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
376 ret.primary_opcode = inst_bytes[++op_idx]; in InstructionLengthDecode()
377 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
381 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
384 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()