Atomic Update Primitives; The Mpc850 And The Powerpc Architecture - Freescale Semiconductor MPC850 User Manual

Mpc850 family integrated communications microprocessor
Table of Contents

Advertisement

The MPC850 and the PowerPC Architecture

3.6.3.6 Atomic Update Primitives

The lwarx and stwcx. instructions are atomic update primitives and are used to set and clear
memory reservations. Reservation accesses made by the same processor are implemented
by the LSU. The external bus interface implements memory reservations as they relate to
accesses made by external bus devices. Accesses made by other internal devices to internal
memories implement memory reservations as they relate to special internal bus snoop logic.
When an lwarx instruction executes, the LSU issues a cycle to the data cache with a special
attribute. For external memory accesses, this attribute causes the external bus interface to
set a memory reservation during the address tenure. External logic must then snoop the
external bus to determine if another device breaks the memory reservation by accessing the
same location. KR and CR signals are available to external logic to signal loss of a
reservation to the external bus interface. When an stwcx. instruction addresses external
memory and the external bus interface determines that the reservation was lost, it blocks the
external bus access and notifies the LSU.
The MPC850 supports the memory reservation mechanism in a hierarchical bus structure.
For reservations on internal memory, an lwarx causes on-chip snoop logic to latch the
address. This logic notifies the LSU of any internal master store access and resets the
reservation. If a new lwarx instruction address tenure executes successfully, it replaces any
previous reservation address at the appropriate snoop logic. However, executing an stwcx.
instruction cancels the reservation unless an alignment exception is detected.
3.7 The MPC850 and the PowerPC Architecture
This section describes the relationship between the MPC850 and the PowerPC architecture.
It indicates the types of distinguishing features of the MPC850 described in the following:
• In many cases, the PowerPC architecture specification is flexible enough to allow
implementation options. For example, the architecture does not specify whether
unaligned transfers must be handled in hardware or whether instruction execution
must be performed in hardware or software.
• The PowerPC architecture defines optional features, some of which are
implemented on the MPC850 (such as TLBs) and some of which are not, such as the
eciwx and ecowx instructions.
• The PowerPC architecture defines features, such as virtual memory and
floating-point instructions, that are not implemented on the MPC850.
MPC850 Family User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc850deMpc850dslMpc850sr

Table of Contents