From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] x86 emulator: Add 'push es' instruction (opcode 0x06) Date: Sun, 16 Aug 2009 11:42:55 +0300 Message-ID: <4A87C68F.2080404@redhat.com> References: <20090816010921.GA22103@mohd-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM list To: Mohammed Gamal Return-path: Received: from mx2.redhat.com ([66.187.237.31]:56871 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216AbZHPInA (ORCPT ); Sun, 16 Aug 2009 04:43:00 -0400 In-Reply-To: <20090816010921.GA22103@mohd-laptop> Sender: kvm-owner@vger.kernel.org List-ID: On 08/16/2009 04:09 AM, Mohammed Gamal wrote: > > +static void emulate_push_sreg(struct x86_emulate_ctxt *ctxt, int seg) > +{ > + struct decode_cache *c =&ctxt->decode; > + c->src.ptr = (unsigned long *)&c->regs[seg]; > + emulate_push(ctxt); > +} > + > This can't be right. c->regs[] is the general purpose register array, not the segment registers. -- error compiling committee.c: too many arguments to function