stwcix

Store Word Caching Inhibited Indexed X-form

stwcix RS,RA,RB

Stores a word from a source register to memory with caching inhibited.

Formerly listed on this site as stwci; the old address leads here. Retired: stwci was a second record of stwcix, under a name no manual or assembler uses, at an encoding that was not stwcix's.

Encoding

Binary Layout
31
0:5
RS
6:10
RA
11:15
RB
16:20
917
21:30
/
31
 
Format X-form
Opcode 0x7C00072A
Extension Base

Operands

  • RS
    Source General Purpose Register
  • RA
    Base Address General Purpose Register
  • RB
    Index General Purpose Register

Example

stwcix r3, r4, r5

Related

More in Base

Reference

Description

Stores a 32-bit word from register RS to memory at the address formed by adding RA and RB, with caching inhibited to bypass L1 cache. This instruction is used for I/O operations and memory-mapped device access where cache coherency is not desired. No condition registers or status fields are modified.

Operation

EA ← (RA) + (RB)
[EA] ← (RS)[32:63]

Programming Note

The stwcix instruction is used to store a 32-bit word from a register to memory with caching inhibited, which can be useful for ensuring data consistency between the CPU and external storage. This instruction requires hypervisor privilege (level HV) and should be used sparingly due to its performance impact. Ensure that the destination address is properly aligned to avoid potential exceptions.