Nios® V Processor Reference Manual

ID 683632
Date 10/15/2025
Public
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.