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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ins->config.has_modrm)
|
if (ins->config.has_opreg)
|
||||||
{
|
{
|
||||||
// instruction encoding employs register embedded into last opcode byte
|
// instruction encoding employs register embedded into last opcode byte
|
||||||
// so we need to apply bit mask
|
// so we need to apply bit mask
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
.globl test_1_end
|
.globl test_1_end
|
||||||
|
|
||||||
test_1:
|
test_1:
|
||||||
lock
|
push %rbp
|
||||||
mov %gs:(%rbx), %rax
|
|
||||||
|
|
||||||
nop # target that rtdisasm must reach
|
nop # target that rtdisasm must reach
|
||||||
test_1_end:
|
test_1_end:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue