11-6
MPC561/MPC563 Reference Manual
MOTOROLA
Data Memory Protection
When no match occurs, the effective region is the global region, which has the lowest
priority.
The region attribute register also contains the region’s protection fields. The protection
field (PP) of the effective region is compared to the access attributes. If the attributes match,
the access is permitted. When the access is permitted, a U-bus access may be generated
according to the specific attribute of the effective region.
When the access by the RCPU is not permitted, the L2U module asserts a data memory
storage exception to the RCPU.
For speculative load/store accesses from the RCPU to a region marked as guarded (G bit of
region attribute register is set), the L2U asks the RCPU to retry the L-bus cycle until either
the access is not speculative, or is canceled by the RCPU.
In the case of attempted accesses to a guarded region together with any other protection
violation (no access), the L2U retries the access. The L2U handles this event as a data
storage violation only when the access becomes non-speculative.
Note that access protection is active only when the MPC500’s MSR[DR] = 1. When
MSR[DR] = 0, DMPU exceptions are disabled, all accesses are considered to be to a
guarded memory area, and no speculative accesses are allowed. In this case, if the L-bus
master [RCPU] initiates a non-CALRAM cycle (access through the L2U) that is marked
speculative, the L2U asks the RCPU to retry the L-bus cycle until either the access is not
speculative, or it is canceled by the RCPU Core.
NOTE
The programmer must not overlap the CALRAM memory
space with any enabled region. Overlapping an enabled region
with CALRAM memory space disables the L2U data memory
protection for that region.
If an enabled region overlaps with the L-bus space, the DMPU
ignores all accesses to addresses within the L-bus space. If an
enabled region overlaps with MPC500 register addresses, the
DMPU ignores any access marked as an MPC500 access.
11.5.2
Associated Registers
Table 11-1 shows registers that are used to control the DMPU of the L2U module. All the
registers are special purpose registers that are accessed via the MPC500 mtspr/mfspr
instructions.
The
registers
are
also
accessed
by
an
external
master
when
and bit descriptions.