target/nios2: Use hw/registerfields.h for CR_EXCEPTION fields
commitbf754c96b24e3e22d80121b63b19eb27067dcea5
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Apr 2022 15:16:56 +0000 (21 08:16 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:16:41 +0000 (26 08:16 -0700)
tree8d799a9a74cfe26b0fe732f56aa812820227fb5e
parente96568a46141557aa71df877f2222fe9993c127e
target/nios2: Use hw/registerfields.h for CR_EXCEPTION fields

Use FIELD_DP32 instead of manual shifting and masking.

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