Fix stupid switch stmt mess-up that broke emulation

of move to/from debug register.
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-07-11 09:22:15 +00:00
1 parent bdd71a572d
commit f2c61ffbe6
1 file changed
+5 -5
+5 -5
View File
@@ -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) )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.