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