Switch to OpenBIOS for Sparc32/64?
Quoted 1 line
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/