How the MMU affects the way you compose your
emulation commands
When you display registers, the address registers, stack pointers, and program
counter always contain logical addresses, even when the MMU is turned on.
If you place an address in the entry buffer and choose Execution
→
Run
→
from(),
or enter a run from <address> command, the address you enter must be a logical
address. The program counter will accept it and supply it to the MMU for
translation before it places the address on the processor bus.
Breakpoint addresses in RAM space are always logical addresses. When you set a
breakpoint at an address, that address is translated by the MMU and the BKPT
instruction replaces the instruction at the appropriate physical address. When the
breakpoint is executed, the emulator restores the original instruction to the physical
address, by first translating the logical address through the MMU.
Consider what happens if you set a breakpoint at a particular address, and before
the breakpoint is hit, you update the translation tables in the MMU, changing the
mapping to the location where the breakpoint is set. This is discussed in detail
under "Solving Problems" at the end of this chapter.
If you enter a command to display memory or modify memory, your command is
directed to logical address space. If you want to display memory at a physical
address, you have to change your command. For example, the command to display
memory at address 100H (Display
→
Memory
→
Hex(), or display memory 100h)
will show you the memory content at logical address 100H (which might be some
other physical address). If you want to see the content at physical memory address
100H, you will have to enter the command display memory physical 100h.
Addresses expressed using symbols are always logical addresses. In the case of
symbols, the emulator looks in the symbol data base and finds the logical address
that corresponds to the symbol you used in your command, and it loads that logical
address into the program counter.
If you attempt to modify a memory location that is write-protected by the MMU,
the emulator will temporarily modify the translation tables to allow access.
Chapter 10: Using Memory Management
Understanding Emulation and Analysis Of The Memory Management Unit
376
Содержание 64783A
Страница 1: ...User s Guide for the Graphical User Interface MC68040 EC040 LC040 Emulator Analyzer HP 64783A B ...
Страница 30: ...xxx ...
Страница 31: ...Part 1 Quick Start Guide 1 ...
Страница 33: ...1 Getting Started 3 ...
Страница 70: ...40 ...
Страница 71: ...2 Solving Quick Start Problems Solutions to problems you might face during the Getting Started procedures 41 ...
Страница 75: ...Part 2 Using The Emulator 45 ...
Страница 140: ...110 ...
Страница 141: ...4 Using the Emulator How to control the processor and view system resources 111 ...
Страница 227: ...5 Using the Emulation Bus Analyzer How to record program execution in real time 197 ...
Страница 290: ...260 ...
Страница 311: ...7 Making Software Performance Measurements How to make software performance measurements on your programs 281 ...
Страница 331: ...8 Configuring the Emulator 301 ...
Страница 382: ...352 ...
Страница 383: ...9 Solving Problems What to do when the emulator doesn t behave as expected 353 ...
Страница 397: ...Part 3 Reference 367 ...
Страница 399: ...10 Using Memory Management Understanding logical and physical emulation and analysis 369 ...
Страница 429: ...11 Emulator Commands The command syntax reference for the emulator softkey interface 399 ...
Страница 443: ...copy Chapter 11 Emulator Commands copy 413 ...
Страница 451: ...display Chapter 11 Emulator Commands display 421 ...
Страница 457: ...DISPLAY MEMORY Chapter 11 Emulator Commands DISPLAY MEMORY 427 ...
Страница 461: ...DISPLAY MMU Chapter 11 Emulator Commands DISPLAY MMU 431 ...
Страница 464: ...DISPLAY TRACE Chapter 11 Emulator Commands DISPLAY TRACE 434 ...
Страница 470: ...Examples end end locked end release_system See Also emul700 emulator_name help end Chapter 11 Emulator Commands end 440 ...
Страница 480: ...modify Chapter 11 Emulator Commands modify 450 ...
Страница 501: ...set Chapter 11 Emulator Commands set 471 ...
Страница 514: ... SYMB Chapter 11 Emulator Commands SYMB 484 ...
Страница 582: ...552 ...
Страница 583: ...13 Setting X Resources 553 ...
Страница 598: ...568 ...
Страница 606: ...576 ...
Страница 607: ...15 Microtec Language Tools Used With MC68040 Emulators Using the emulator analyzer with Microtec language tools 577 ...
Страница 613: ...16 Specifications and Characteristics 583 ...
Страница 627: ...Part 4 Concept Guide 597 ...
Страница 629: ...17 X Resources and the Graphical User Interface 599 ...
Страница 639: ...Part 5 Installation and Service Guide 609 ...
Страница 645: ...Chapter 18 Connecting the Emulator to a Target System Plugging The Emulator Into A Target System 615 ...
Страница 697: ...19 Installation and Service 667 ...
Страница 746: ...Chapter 19 Installation and Service Verifying the Installation 716 ...
Страница 755: ...20 Installing Updating Emulator Firmware 725 ...
Страница 762: ...732 ...
Страница 778: ...748 ...
Страница 810: ...X server 554 604 X Window System 54 Index 780 ...