6-36 M68060 USER’S MANUAL MOTOROLA
FSAVE on the MC68060 only generates one size frame (three long words), which creates a
signiﬁcant performance beneﬁt, and one of these three frame types. An attempt to
FRESTORE a frame format other than $00, $60, or $E0 results in a format error exception.
The format of the ﬁrst long word of the MC68060 ﬂoating-point frame has changed from
that of previous M68000 microprocessors. The MC68060 frame format (bits 15–8) is a
consolidation of the version number and size format information (bits 31–16) on previous
parts. In addition, on the MC68060, this information resides in the lower word of the long
word while the upper word is used for the exception operand exponent in EXCP frames.
Therefore, FRESTORE of a frame on an MC68060 created by FSAVE on a non-MC68060
microprocessor and FRESTORE of a frame on a non-MC68060 microprocessor created by
FSAVE on an MC68060 will not guarantee a format error exception will be detected and
thus must never be attempted.
When an FSAVE is executed, the ﬂoating-point frame reﬂects the state of the FPU at the
time of the FSAVE. Internally, the FPU can be in the NULL, IDLE or EXCP states. Upon
reset, the FPU is in the NULL state. In the NULL state, all ﬂoating-point registers contain
nonsignaling NANs and the FPCR, FPSR, and FPIAR contain zeroes. The FPU remains in
this state until the execution of an implemented ﬂoating-point instruction (except FSAVE).
At this point, the FPU transitions from a NULL state to an IDLE state. An FRESTORE of
NULL returns the FPU to the NULL state. The EXCP state is entered as a result of either a
ﬂoating-point exception or an unsupported data type exception. V2–V0 indicates the
exception types that are associated with the EXCP state.
An FSAVE instruction always clears the internal exception status bit at the completion of
the FSAVE. An FRESTORE of EXCP may be used to place the FPU in the exception state.
The FRESTORE of an EXCP state is used in the M68060SP to provide to the user
exception handler the illusion that the M68060SP handler never existed at all. The user
exception handler is entered with the FPU in the proper exception state. The user
Figure 6-11. Status Word Contents
001—INEX2 | INEX1
V2 V1 V0