EasyManuals Logo
Home>IBM>Computer Hardware>PowerPC 405GP

IBM PowerPC 405GP User Manual

IBM PowerPC 405GP
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #148 background imageLoading...
Page #148 background image
31
CWS Cache Way Select
o Cache way is
A.
1 Cache way is
B.
4.4.1
CCRO
Programming Guidelines
Several fields
in
CCRO
affect ICU and DCU operation. Altering these fields while the cache units are
involved in PLS transfers can cause errant operation, including a processor hang.
To
guarantee correct
ICU
and DCU operation, specific code sequences must be followed when
altering
CCRO
fields.
CCRO[IPP,
FWOA] affect
ICU
operation. When these fields are altered, execution of the following
code sequence (Sequence
1)
is required.
! SEQUENCE 1
Altering
CCRO[IPP,
FWOA]
! Turn off interrupts
mfmsr
RM
addis
RZ,rO,Ox0002
! CE bit
ori
RZ,RZ,Ox8000 !
EE
bit
andc
RZ,RM,RZ!
Turn off MSR[CE,EE]
mtmsr
RZ
! sync
sync
! Touch code sequence into i-cache
addis
RX,rO,seq1
@h
ori RX,RX,seq1
@I
icbt
rO,RX
! Call function to alter
CCRO
bits
b
seq1
back:
! Restore MSR to
original value
mtmsr
RM
โ€ข
โ€ข
โ€ข
! The following function must be in cacheable memory
.align 5 ! Align
CCRO
altering code
on
a cache line boundary.
seq1:
icbt
rO,RX
! Repeat ICST and execute
an
ISYNC to guarantee
CCRO
isync ! altering code has been completely fetched across the PLB.
mfspr
RN,CCRO
! Read
CCRO.
andi/ori RN,RN,OxXXXX ! Execute and/or function to change any
CCRO
bits.
!
Can use two instructions before having to touch
! in two cache
lines.
Preliminary Cache Operations
4-13

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM PowerPC 405GP and is the answer not in the manual?

IBM PowerPC 405GP Specifications

General IconGeneral
BrandIBM
ModelPowerPC 405GP
CategoryComputer Hardware
LanguageEnglish

Related product manuals