fix typo which led to bug with opreg decoding
This commit is contained in:
parent
eb4b5767ee
commit
4ae333513e
2 changed files with 2 additions and 3 deletions
|
|
@ -100,7 +100,7 @@ static const instruction_t* find_instruction(const uint8_t* cur, unsigned type,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (ins->config.has_modrm)
|
||||
if (ins->config.has_opreg)
|
||||
{
|
||||
// instruction encoding employs register embedded into last opcode byte
|
||||
// so we need to apply bit mask
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
.globl test_1_end
|
||||
|
||||
test_1:
|
||||
lock
|
||||
mov %gs:(%rbx), %rax
|
||||
push %rbp
|
||||
|
||||
nop # target that rtdisasm must reach
|
||||
test_1_end:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue