ARM VERSION 1.2 Guide de l'utilisateur Page 111

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 133
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 110
When you load from that region, the cache is searched. If the item is found, it is loaded from the cache. If the
item is not found, a complete cache line including the required address is loaded. Some other cache line is
evicted from the cache, unless there is an unused cache line available.
When you save to that region, the cache is searched. If the item is found, the save is made to the cache. If the
item is not found, the save is made to memory.
The exact effect of the bufferable flag varies (see the Technical Reference Manual for your processor for details).
Bits [7:0] of register c2 in CP15 are the cacheable flags. Opcode 2 is used to select instruction or data regions.
Bits [7:0] of register c3 in CP15 are the bufferable flags. Opcode 2 must be 0 because bufferable flags can only be
used for data regions.
Operand2 specifies data or instruction regions.
Example 7-2 Setting cacheable and bufferable flags
MOV r0,#2_00011010 ; set data regions 1, 3 and 4 as cacheable, all others noncacheab
le
MCR p15,0,r0,c2,c0,0
MOV r0,#2_00010010 ; set instruction regions 1 and 4 as cacheable, all others noncac
heable
MCR p15,0,r0,c2,c0,1
MOV r0,#2_00001000 ; set data region 3 as write bufferable, all others nonbufferable
MCR p15,0,r0,c3,c0,0
7.4.3 Setting region access permissions
Coprocessor register c5 of CP15 is the region access permissions register. Example 7-3 sets Region access
permissions.
Operand2 specifies data or instruction regions.
Example 7-3 Setting access permissions
MOV r0,#2_1111111100 ; set data region 1, 2, 3 and 4 as full access
MCR p15,0,r0,c5,c0,0
MOV r0,#2_1000001000 ; set instruction region 1 and 4 as:
MCR p15,0,r0,c5,c0,1 ; Privileged Mode, full access; User Mode, read only
Table 7-1 and Table 7-2 show the meanings of the bits in the access permission register.
Table 7-1 Region bit mapping scheme
Register bit Function
[15:14] access permission bits [1:0] of
area 7
[13:12] access permission bits [1:0] of
area 6
[11:10] access permission bits [1:0] of
area 5
... ...
Table 7-2 Region access permission bit definition
bits [1:0] Meaning
00 No access
01 Access from privileged mode only
10 Full access from privileged mode, read only from
User mode
11 Full access
Note
Some processors have four bits per region (see the Technical Reference Manual for your processor for details).
Caches and Tightly Coupled Memories
Copyright ?1999 2001 ARM Limited 7-6
Vue de la page 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 132 133

Commentaires sur ces manuels

Pas de commentaire