[Vm-dev] About mantis 3929 (FPU register stack overflow)

Andreas Raab andreas.raab at gmx.de
Thu Sep 10 15:30:02 UTC 2009


Bert Freudenberg wrote:
> On 10.09.2009, at 02:32, David T. Lewis wrote:
>> caveat: I have no expertise with FPUs and the subject is not the sort
>> of thing that would be improved by a democratic process, so I'll refrain
>> from casting my "+1" vote.
> 
> +1 to that.

Ditto. The +1 is well-deserved. The problem is that the FPU stack isn't 
popped when returning from a call that has a float return. It needs to 
be popped; on x86 the FPU is organized as a stack. The difference 
between "fstl" and "fstpl" is the ->p<- which stands for "pop" ;-)

Cheers,
   - Andreas


More information about the Vm-dev mailing list