direct-io.hg

changeset 13376:179453a85929

[XEN] Emulate AMD-defined two-byte NOP opcodes with ModRM.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@localhost.localdomain
date Sun Jan 14 16:12:42 2007 +0000 (2007-01-14)
parents a6f10ffa07a0
children 2b50acbdf01b
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Sun Jan 14 16:00:19 2007 +0000
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Sun Jan 14 16:12:42 2007 +0000
     1.3 @@ -168,8 +168,11 @@ static uint8_t opcode_table[256] = {
     1.4  static uint8_t twobyte_table[256] = {
     1.5      /* 0x00 - 0x0F */
     1.6      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ImplicitOps|ModRM, 0, 0,
     1.7 -    /* 0x10 - 0x1F */
     1.8 -    0, 0, 0, 0, 0, 0, 0, 0, ImplicitOps|ModRM, 0, 0, 0, 0, 0, 0, 0,
     1.9 +    /* 0x10 - 0x17 */
    1.10 +    0, 0, 0, 0, 0, 0, 0, 0,
    1.11 +    /* 0x18 - 0x1F */
    1.12 +    ImplicitOps|ModRM, ImplicitOps|ModRM, ImplicitOps|ModRM, ImplicitOps|ModRM,
    1.13 +    ImplicitOps|ModRM, ImplicitOps|ModRM, ImplicitOps|ModRM, ImplicitOps|ModRM,
    1.14      /* 0x20 - 0x2F */
    1.15      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    1.16      /* 0x30 - 0x3F */
    1.17 @@ -2052,6 +2055,7 @@ x86_emulate(
    1.18      {
    1.19      case 0x0d: /* GrpP (prefetch) */
    1.20      case 0x18: /* Grp16 (prefetch/nop) */
    1.21 +    case 0x19 ... 0x1f: /* nop (amd-defined) */
    1.22          break;
    1.23  
    1.24      case 0x80 ... 0x8f: /* jcc (near) */ {