|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Fix the missing code path for emulating "mov <reg>,
I found the code path for emulating "mov <reg>, DR?" could not be
reached, this patch fixed it.
-Xin
--- a/xen/arch/x86/traps.c Sun Jul 10 19:16:40 2005
+++ b/xen/arch/x86/traps.c Mon Jul 11 16:37:18 2005
@@ -840,6 +840,11 @@
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;
@@ -847,11 +852,6 @@
reg = decode_register(modrm_rm, regs, 0);
if ( do_set_debugreg(modrm_reg, *reg) != 0 )
goto fail;
- break;
-
- default:
- goto fail;
- }
break;
case 0x30: /* WRMSR */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Fix the missing code path for emulating "mov <reg>, DR?",
Li, Xin B <=
|
|
|
|
|