From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOZNJ-0007ma-Uq for qemu-devel@nongnu.org; Mon, 23 May 2011 13:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOZNJ-0006Py-4L for qemu-devel@nongnu.org; Mon, 23 May 2011 13:57:05 -0400 Received: from bay0-omc2-s24.bay0.hotmail.com ([65.54.190.99]:34553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOZNJ-0006Pq-09 for qemu-devel@nongnu.org; Mon, 23 May 2011 13:57:05 -0400 From: "Guan, Qiang" Date: Mon, 23 May 2011 17:36:58 +0000 Message-ID: <2BF1F3C0C95FE042BC029856BB5FF244922F@SN2PRD0102MB142.prod.exchangelabs.com> Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_2BF1F3C0C95FE042BC029856BB5FF244922FSN2PRD0102MB142prod_" MIME-Version: 1.0 Subject: [Qemu-devel] Can anybody help me figure out what has been done about floating point multiply in QEMU? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --_000_2BF1F3C0C95FE042BC029856BB5FF244922FSN2PRD0102MB142prod_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Everybody I am a freshman in QEMU. I want to figure out what is happening in emulating the floating point calc= ulation in QEMU. I checked the codes in target-i386/translate.c, but I cann= ot find anything about floating point calculation, I can only find the emul= ation about integer "mul" or "div". My question is what did QEMU do when th= ey need to emulate a floating point calculation? where are these codes? Best wishes Qiang --_000_2BF1F3C0C95FE042BC029856BB5FF244922FSN2PRD0102MB142prod_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi, Everybody

 

I am a freshman in QEMU.

I want to figure out what is happening in emulating the floating point c= alculation in QEMU. I checked the codes in target-i386/translate.c, but I c= annot find anything about floating point calculation, I can only find the e= mulation about integer "mul" or "div". My question is what did QEMU do when they need to emulate= a floating point calculation? where are these codes?

 

Best wishes

 

Qiang

--_000_2BF1F3C0C95FE042BC029856BB5FF244922FSN2PRD0102MB142prod_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOZTr-0000jy-UW for qemu-devel@nongnu.org; Mon, 23 May 2011 14:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOZTr-0007WD-1B for qemu-devel@nongnu.org; Mon, 23 May 2011 14:03:51 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:54253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOZTq-0007W6-OQ for qemu-devel@nongnu.org; Mon, 23 May 2011 14:03:50 -0400 Message-ID: <4DDAA182.2030008@codesourcery.com> Date: Mon, 23 May 2011 14:03:46 -0400 From: Nathan Froyd MIME-Version: 1.0 References: <2BF1F3C0C95FE042BC029856BB5FF244922F@SN2PRD0102MB142.prod.exchangelabs.com> In-Reply-To: <2BF1F3C0C95FE042BC029856BB5FF244922F@SN2PRD0102MB142.prod.exchangelabs.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Can anybody help me figure out what has been done about floating point multiply in QEMU? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Guan, Qiang" Cc: "qemu-devel@nongnu.org" On 05/23/2011 01:36 PM, Guan, Qiang wrote: > I want to figure out what is happening in emulating the floating point > calculation in QEMU. I checked the codes in target-i386/translate.c, but I > cannot find anything about floating point calculation, I can only find the > emulation about integer "mul" or "div". My question is what did QEMU do when > they need to emulate a floating point calculation? where are these codes? All the code for manipulating floating-point numbers is in the fpu directory. The target-i386 code that calls into those functions is in op_helper.c. HTH, -Nathan