ia64/xen-unstable

changeset 15960:f187dc338d82

vmxassist: Emulate HLT.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Sat Sep 22 09:39:18 2007 +0100 (2007-09-22)
parents f7c1758b8b16
children 5957d62f7290
files tools/firmware/vmxassist/vm86.c
line diff
     1.1 --- a/tools/firmware/vmxassist/vm86.c	Fri Sep 21 17:23:35 2007 +0100
     1.2 +++ b/tools/firmware/vmxassist/vm86.c	Sat Sep 22 09:39:18 2007 +0100
     1.3 @@ -1622,6 +1622,11 @@ opcode(struct regs *regs)
     1.4  			TRACE((regs, regs->eip - eip, "lock"));
     1.5  			continue;
     1.6  
     1.7 +		case 0xF4: /* hlt */
     1.8 +			TRACE((regs, regs->eip - eip, "hlt"));
     1.9 +			/* Do something power-saving here! */
    1.10 +			return OPC_EMULATED;
    1.11 +
    1.12  		case 0xF6: /* addr32 testb $imm, r/m8 */
    1.13  			if (!(prefix & ADDR32))
    1.14  				goto invalid;