x86: Fix the build after c/s 18163 (5fbcbee355e2)
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jul 2008 08:20:42 +0000 (09:20 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jul 2008 08:20:42 +0000 (09:20 +0100)
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/shadow/multi.c

index 6df3f6e6bbc1a4482248bd4023948dec6f0be690..dec5e9a09f1381c81897041250af456d67f60819 100644 (file)
@@ -4645,7 +4645,6 @@ static void *emulate_map_dest(struct vcpu *v,
                               u32 bytes,
                               struct sh_emulate_ctxt *sh_ctxt)
 {
-    struct segment_register *sreg;
     unsigned long offset;
     void *map = NULL;
 
@@ -4658,8 +4657,7 @@ static void *emulate_map_dest(struct vcpu *v,
 
 #ifndef NDEBUG
     /* We don't emulate user-mode writes to page tables */
-    sreg = hvm_get_seg_reg(x86_seg_ss, sh_ctxt);
-    if ( sreg->attr.fields.dpl == 3 )
+    if ( hvm_get_seg_reg(x86_seg_ss, sh_ctxt)->attr.fields.dpl == 3 )
     {
         gdprintk(XENLOG_DEBUG, "User-mode write to pagetable reached "
                  "emulate_map_dest(). This should never happen!\n");