Nios® V Processor Reference Manual

ID 683632
Date 5/25/2025
Public

Visible to Intel only — GUID: phz1740991780151

Ixiasoft

Document Table of Contents

4.3.2.2.3. Write Previous Shadow Register CSR (mwrpsrf)

The mwrpsrf register facilitates copying information from active shadow register sets to the previous one. A csrrw instruction to mwrpsrf reads the rs1 register in active register file and stores its value in the rd register of previous register file.

For example: csrrw x10, mwrpsrf, x11.

Read the value of x10 register in active register file, and store it to x11 register of previous register file.