1) Include the bit 'psref' in the static translation state (in tb->flags). Then psref can be tested at translation time and there is no run time cost. This approach is used on the x86 target. The downside is that two TBs may be generated for a given block of code depending on the psref value. Ideally if no FPU operations are used in the TB, psref should be ignored (not done yet on x86).
Is the attached patch what you had in mind?
Record FPU enabled/disabled condition to TB flags, generate code statically based on translation time state. _________________________________________________________________Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
sparc-fpu-translation.diff.bz2
Description: Binary data
_______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel