WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Fix stupid switch stmt mess-up that broke emulation

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix stupid switch stmt mess-up that broke emulation
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jul 2005 05:22:10 -0400
Delivery-date: Mon, 11 Jul 2005 09:22:34 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID d332d4df452ecf6c3aaeab73c79e1e6ce751b61d
# Parent  f261f14b9781f949f95a328433eff187c677a70b

Fix stupid switch stmt mess-up that broke emulation
of move to/from debug register.

diff -r f261f14b9781 -r d332d4df452e xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Mon Jul 11 09:14:11 2005
+++ b/xen/arch/x86/traps.c      Mon Jul 11 09:22:15 2005
@@ -843,6 +843,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;
@@ -850,11 +855,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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix stupid switch stmt mess-up that broke emulation, Xen patchbot -unstable <=