| |||
| Home > VFP Support Code > Features of the VFP Support Code | |||
The VFP Support Code provides a VFP system with a mechanism of dealing with uncommon and exceptional instructions that are not dealt with directly by the VFP coprocessor hardware.
The support code provided with this application note supports a fully IEEE 754 compliant floating-point model when used in conjunction with a VFP coprocessor. The support code does not provide a complete software implementation of the VFP architecture (VFP emulation software).
The support code provided with this application note is made up of a number of files.
The following files are provided in source form in the \vfp_support subdirectory
of the associated example code. These files might have to be modified
when integrating with an operating system.
Table 6.
controlbuffer.c | Buffer used to transfer information from the top-level handler to the computation engine. |
controlbuffer.h | C header for controlbuffer.c |
slundef.h | Interface to second level undef handlers |
tlundef.s | Top-level handler which identifies the cause of the undefined instruction exception and takes the appropriate action |
sldummy.s | Dummy coprocessor and undef handlers for use in example code |
vfpfptrap.s | Provides a wrapper around the standard _fp_trap handler in the C Library for the computation engine to call |
vfpundef.c | Called from top-level undef handler once a CP10,CP11 bounce is identified, registers are saved and mode is switched |
vfpwrapper.s | Provides a wrapper around the Computation Engine for the top level handler to call |
The following files are provided in source format in the \vfp_support subdirectory
of the associated example code. These files contain functions to
access the subarchitecture defined functionality of the VFP9/VFP10/VFP11
family of VFP coprocessors.
Table 7.
vfpsubarch.h | Header for vfpsubarch.s |
vfpsubarch.s | Subarchitecture support. |
vfpsupport.b | Computation Engine of the VFP Support Code (big-endian version). The computation engine emulates VFP operations that the hardware has bounced. |
vfpsupport.l | Computation Engine of the VFP Support Code (little-endian version) |
The relationships between these files are shown in the following diagram: