ia64/xen-unstable

changeset 5723:d332d4df452e

Fix stupid switch stmt mess-up that broke emulation
of move to/from debug register.
author kaf24@firebug.cl.cam.ac.uk
date Mon Jul 11 09:22:15 2005 +0000 (2005-07-11)
parents f261f14b9781
children 0bcfd66a431e
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Mon Jul 11 09:14:11 2005 +0000
     1.2 +++ b/xen/arch/x86/traps.c	Mon Jul 11 09:22:15 2005 +0000
     1.3 @@ -843,6 +843,11 @@ static int emulate_privileged_op(struct 
     1.4              UNLOCK_BIGLOCK(v->domain);
     1.5              break;
     1.6  
     1.7 +        default:
     1.8 +            goto fail;
     1.9 +        }
    1.10 +        break;
    1.11 +
    1.12      case 0x23: /* MOV <reg>,DR? */
    1.13          opcode = insn_fetch(u8, 1, eip);
    1.14          modrm_reg |= (opcode >> 3) & 7;
    1.15 @@ -852,11 +857,6 @@ static int emulate_privileged_op(struct 
    1.16              goto fail;
    1.17          break;
    1.18  
    1.19 -        default:
    1.20 -            goto fail;
    1.21 -        }
    1.22 -        break;
    1.23 -
    1.24      case 0x30: /* WRMSR */
    1.25          /* Ignore the instruction if unprivileged. */
    1.26          if ( !IS_PRIV(v->domain) )