target/nios2: Implement rdprs, wrprs
commit3a03087019ab4a67751570190439d252b39b83c4
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Apr 2022 15:17:25 +0000 (21 08:17 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:17:05 +0000 (26 08:17 -0700)
tree9f65eb10b376a28b7458318f1a5e5057a9c7049c
parent945a5bd3f88729960c52393a9eb3ad701e2b6595
target/nios2: Implement rdprs, wrprs

Implement these out of line, so that tcg global temps
(aka the architectural registers) are synced back to
tcg storage as required.  This makes sure that we get
the proper results when status.PRS == status.CRS.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220421151735.31996-55-richard.henderson@linaro.org>
target/nios2/cpu.h
target/nios2/helper.h
target/nios2/op_helper.c
target/nios2/translate.c