From: Nitin A Kamble Subject: Re: [Patch] (big) real mode emulation - jmp rel Date: Thu, 16 Aug 2007 13:34:29 -0700 Message-ID: <1187296469.5500.7.camel@lnitindesktop.sc.intel.com> References: <1186785157.6097.19.camel@lnitindesktop.sc.intel.com> <46C01B0E.7080304@qumranet.com> <1187226935.24576.5.camel@lnitindesktop.sc.intel.com> <46C42610.8020707@qumranet.com> Reply-To: nitin.a.kamble-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0766638738==" Cc: kvm-devel , "Yu, Wilfred" To: Avi Kivity Return-path: In-Reply-To: <46C42610.8020707-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --===============0766638738== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2g7WlaQxr9HjuYE0v5+o" --=-2g7WlaQxr9HjuYE0v5+o Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Avi, In my opinion converting this small function to file-scope function, would make code look ugly. I think the earlier Macro definition was better. On Thu, 2007-08-16 at 03:25 -0700, Avi Kivity wrote: > > + inline void jmp_rel(int rel) > > + { > > + _eip +=3D (int)(rel); > > + _eip =3D ((op_bytes =3D=3D 2) ? (uint16_t)_eip : > (uint32_t)_eip); > > + }; > > + >=20 > This is a nested function which we don't use (in the kernel or > userspace). >=20 > It needs to be a file-scope function (static, too). --=20 Thanks & Regards, Nitin Open Source Technology Center, Intel Corporation ----------------------------------------------------------------- The mind is like a parachute; it works much better when it's open --=-2g7WlaQxr9HjuYE0v5+o Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGxLTOEA5Hv97Fde4RAvI3AJ4y2hNjqYyI2C3BSwuc+rpHpz4DlACglX7l KTFrby4GW9tdKo2Js4XBjPA= =g5wK -----END PGP SIGNATURE----- --=-2g7WlaQxr9HjuYE0v5+o-- --===============0766638738== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --===============0766638738== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============0766638738==--