Using an FPU with an MC68EC040 or MC68LC040
Target System
The MC68EC040 and MC68LC040 processors do not have an on-chip FPU. When
floating-point functionality is required, all floating-point operations must be
implemented in software using integer instructions. Language systems usually
provide a floating-point software library for this purpose.
The HP 64783A/B emulator uses an MC68040 processor with an on-chip FPU.
Because there is no way to disable the FPU, floating-point operations may execute
differently, depending on the language system used. If your language system
generates calls directly to the floating-point software library and does not emit any
opcodes for floating-point instructions, then there should be no difference in
floating-point operations whether you are using the emulator or the
MC68EC040/LC040 processor plugged into your target system.
If your language system emits opcodes for floating-point instructions and relies on
an F-Line exception handler to call the floating-point software library when the
instruction is executed, then your target system will operate differently when the
emulator is plugged in. When using the emulator, most floating-point instructions
will be executed on the FPU in hardware instead of generating an F-Line exception
and allowing the floating-point operations to be implemented in software. For this
scenario, the following three points should be taken into consideration:
•
Floating-point software libraries cannot be tested while the emulator is plugged
in. Floating-point instructions are always executed on-chip, not by your
floating-point libraries. This will definitely cause a problem for anyone trying
to develop floating-point software libraries.
•
Target programs containing FPU instructions will run faster when the emulator
is plugged into the target system because they are executed in the hardware of
the MC68040 instead of by the floating-point software libraries, as they will be
when the MC68EC040/LC040 processor is plugged in. This will cause
performance measurements to show much better results when using the
emulator than you will actually obtain when you use the MC68EC040/LC040
processor.
•
If you are unaware that your language tools use floating-point instructions (and
you do not actively provide floating-point libraries and F-Line exception
handling), you may find that your target system does not work when you
unplug the emulator and plug in your MC68EC040/LC040 target processor.
Chapter 4: Using the Emulator
Using an FPU with an MC68EC040 or MC68LC040 Target System
187
Summary of Contents for 64783A
Page 30: ...xxx ...
Page 31: ...Part 1 Quick Start Guide 1 ...
Page 33: ...1 Getting Started 3 ...
Page 70: ...40 ...
Page 75: ...Part 2 Using The Emulator 45 ...
Page 140: ...110 ...
Page 141: ...4 Using the Emulator How to control the processor and view system resources 111 ...
Page 227: ...5 Using the Emulation Bus Analyzer How to record program execution in real time 197 ...
Page 290: ...260 ...
Page 331: ...8 Configuring the Emulator 301 ...
Page 382: ...352 ...
Page 383: ...9 Solving Problems What to do when the emulator doesn t behave as expected 353 ...
Page 397: ...Part 3 Reference 367 ...
Page 399: ...10 Using Memory Management Understanding logical and physical emulation and analysis 369 ...
Page 429: ...11 Emulator Commands The command syntax reference for the emulator softkey interface 399 ...
Page 443: ...copy Chapter 11 Emulator Commands copy 413 ...
Page 451: ...display Chapter 11 Emulator Commands display 421 ...
Page 457: ...DISPLAY MEMORY Chapter 11 Emulator Commands DISPLAY MEMORY 427 ...
Page 461: ...DISPLAY MMU Chapter 11 Emulator Commands DISPLAY MMU 431 ...
Page 464: ...DISPLAY TRACE Chapter 11 Emulator Commands DISPLAY TRACE 434 ...
Page 480: ...modify Chapter 11 Emulator Commands modify 450 ...
Page 501: ...set Chapter 11 Emulator Commands set 471 ...
Page 514: ... SYMB Chapter 11 Emulator Commands SYMB 484 ...
Page 582: ...552 ...
Page 583: ...13 Setting X Resources 553 ...
Page 598: ...568 ...
Page 606: ...576 ...
Page 613: ...16 Specifications and Characteristics 583 ...
Page 627: ...Part 4 Concept Guide 597 ...
Page 629: ...17 X Resources and the Graphical User Interface 599 ...
Page 639: ...Part 5 Installation and Service Guide 609 ...
Page 697: ...19 Installation and Service 667 ...
Page 746: ...Chapter 19 Installation and Service Verifying the Installation 716 ...
Page 755: ...20 Installing Updating Emulator Firmware 725 ...
Page 762: ...732 ...
Page 778: ...748 ...
Page 810: ...X server 554 604 X Window System 54 Index 780 ...