mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-10 18:29:44 +00:00
Merge pull request #72 from rakslice/x64_32_instruction_skip
X64 32-bit address instruction skip
This commit is contained in:
commit
cadd3350ea
@ -1018,6 +1018,15 @@ static bool ix86_skip_instruction(SIGSEGV_REGISTER_TYPE * regs)
|
|||||||
transfer_size = SIZE_WORD;
|
transfer_size = SIZE_WORD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
|
// Address size override
|
||||||
|
if (*eip == 0x67) {
|
||||||
|
// 32-bit address
|
||||||
|
eip++;
|
||||||
|
len++;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// REX prefix
|
// REX prefix
|
||||||
#if defined(__x86_64__) || defined(_M_X64)
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
struct rex_t {
|
struct rex_t {
|
||||||
|
@ -1018,6 +1018,15 @@ static bool ix86_skip_instruction(SIGSEGV_REGISTER_TYPE * regs)
|
|||||||
transfer_size = SIZE_WORD;
|
transfer_size = SIZE_WORD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
|
// Address size override
|
||||||
|
if (*eip == 0x67) {
|
||||||
|
// 32-bit address
|
||||||
|
eip++;
|
||||||
|
len++;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// REX prefix
|
// REX prefix
|
||||||
#if defined(__x86_64__) || defined(_M_X64)
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
struct rex_t {
|
struct rex_t {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user