03.08.2013 Views

E200Z1RM, e200z1 Power Architecture Ž Core - Reference Manual

E200Z1RM, e200z1 Power Architecture Ž Core - Reference Manual

E200Z1RM, e200z1 Power Architecture Ž Core - Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Register Model<br />

2.4.17 TLB Configuration Registers (TLB0CFG, TLB1CFG)<br />

The TLB0CFG and TLB1CFG registers provide configuration information for the optional MMU TLBs<br />

supplied with this version of the e200 CPU core. A description of these registers can be found in Chapter 6,<br />

“Memory Management Unit.”<br />

2.5 SPR Register Access<br />

SPRs are accessed with the mfspr and mtspr instructions. The following sections outline additional access<br />

requirements.<br />

2.5.1 Invalid SPR <strong>Reference</strong>s<br />

System behavior when an invalid SPR is referenced depends on the apparent privilege level of the register.<br />

The register privilege level is determined by bit 5 in the SPR address. If the invalid SPR is accessible in<br />

user mode, then an illegal exception is generated. If the invalid SPR is accessible only in supervisor mode<br />

and the CPU core is in supervisor mode (MSR[PR] = 0), then an illegal exception is generated. If the<br />

invalid SPR address is accessible only in supervisor mode and the core is not in supervisor mode<br />

(MSR[PR] = 1), then a privilege exception is generated.<br />

Table 2-13. System Response to Invalid SPR <strong>Reference</strong><br />

SPR Address Bit 5 Mode MSR[PR] Response<br />

0 — — Illegal exception<br />

1 supervisor 0 Illegal exception<br />

1 user 1 Privilege exception<br />

<strong>Reference</strong>s to the SPRs associated with an optional unit (Cache, MMU, EFPU) when the unit is not present<br />

are treated as references to an invalid SPR unless otherwise defined.<br />

2.5.2 Synchronization Requirements for SPRs<br />

With the exception of the following registers, there are no synchronization requirements for accessing<br />

SPRs beyond those stated in <strong>Power</strong> <strong>Architecture</strong> Book E. Software requirements for synchronization<br />

before/after accessing these registers are shown in Table 2-14. The notation CSI in the table refers to a<br />

Context Synchronizing instruction which include sc, isync, rfi, rfci, and rfdi.<br />

Table 2-14. Additional Synchronization Requirements for SPRs<br />

Context Altering Event or Instruction<br />

mfspr<br />

Required<br />

Before<br />

<strong>e200z1</strong> <strong>Power</strong> <strong>Architecture</strong> <strong>Core</strong> <strong>Reference</strong> <strong>Manual</strong>, Rev. 0<br />

Required<br />

After<br />

DBCNT Debug Counter register msync none 1<br />

DBSR Debug Status Register msync none —<br />

HID0 Hardware implementation dependent reg 0 none none —<br />

2-22 Freescale Semiconductor<br />

Notes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!