From: Keir Fraser Date: Wed, 30 Jul 2008 08:20:42 +0000 (+0100) Subject: x86: Fix the build after c/s 18163 (5fbcbee355e2) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14165^2~86 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99;p=xen.git x86: Fix the build after c/s 18163 (5fbcbee355e2) Signed-off-by: Liu, Jinsong Signed-off-by: Masaki Kanno Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 6df3f6e6bb..dec5e9a09f 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -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");