[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86_emulate: Fix after decode changes. Valid opcode decode values must
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1224008388 -3600 # Node ID 9b227eb0926393d535473c470fed70d7b39c4509 # Parent a72eebf02915de8b3cdf8e8b8cdaebf38f1a20e9 x86_emulate: Fix after decode changes. Valid opcode decode values must be non-zero. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/arch/x86/x86_emulate/x86_emulate.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff -r a72eebf02915 -r 9b227eb09263 xen/arch/x86/x86_emulate/x86_emulate.c --- a/xen/arch/x86/x86_emulate/x86_emulate.c Tue Oct 14 11:49:08 2008 +0100 +++ b/xen/arch/x86/x86_emulate/x86_emulate.c Tue Oct 14 19:19:48 2008 +0100 @@ -31,13 +31,14 @@ #define DstMem (3<<1) /* Memory operand. */ #define DstMask (3<<1) /* Source operand type. */ -#define SrcNone (0<<3) /* No source operand. */ -#define SrcImplicit (0<<3) /* Source operand is implicit in the opcode. */ -#define SrcReg (1<<3) /* Register operand. */ -#define SrcMem (2<<3) /* Memory operand. */ -#define SrcMem16 (3<<3) /* Memory operand (16-bit). */ -#define SrcImm (4<<3) /* Immediate operand. */ -#define SrcImmByte (5<<3) /* 8-bit sign-extended immediate operand. */ +#define SrcInvalid (0<<3) /* Unimplemented opcode. */ +#define SrcNone (1<<3) /* No source operand. */ +#define SrcImplicit (1<<3) /* Source operand is implicit in the opcode. */ +#define SrcReg (2<<3) /* Register operand. */ +#define SrcMem (3<<3) /* Memory operand. */ +#define SrcMem16 (4<<3) /* Memory operand (16-bit). */ +#define SrcImm (5<<3) /* Immediate operand. */ +#define SrcImmByte (6<<3) /* 8-bit sign-extended immediate operand. */ #define SrcMask (7<<3) /* Generic ModRM decode. */ #define ModRM (1<<6) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |