mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix stupid switch stmt mess-up that broke emulation
of move to/from debug register.
This commit is contained in:
1 parent
bdd71a572d
commit
f2c61ffbe6
1 file changed
+5
-5
@@ -843,6 +843,11 @@ static int emulate_privileged_op(struct cpu_user_regs *regs)
|
||||
UNLOCK_BIGLOCK(v->domain);
|
||||
break;
|
||||
|
||||
default:
|
||||
goto fail;
|
||||
}
|
||||
break;
|
||||
|
||||
case 0x23: /* MOV <reg>,DR? */
|
||||
opcode = insn_fetch(u8, 1, eip);
|
||||
modrm_reg |= (opcode >> 3) & 7;
|
||||
@@ -852,11 +857,6 @@ static int emulate_privileged_op(struct cpu_user_regs *regs)
|
||||
goto fail;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto fail;
|
||||
}
|
||||
break;
|
||||
|
||||
case 0x30: /* WRMSR */
|
||||
/* Ignore the instruction if unprivileged. */
|
||||
if ( !IS_PRIV(v->domain) )
|
||||
|
||||