OSDN Git Service

target/nios2: Use hw/registerfields.h for CR_TLBACC fields
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Apr 2022 15:16:58 +0000 (08:16 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:16:41 +0000 (08:16 -0700)
commit9d63656354d7cdac6a4b2cafa8243ede4a551a56
tree253d7eed8ab9975133774b711c1ea36240069a10
parent0a1fc63043e485655aa287ad346f05234afaae6e
target/nios2: Use hw/registerfields.h for CR_TLBACC fields

Retain the helper macros for single bit fields as aliases to
the longer R_*_MASK names.  Use FIELD_EX32 and FIELD_DP32
instead of manually manipulating the fields.

Since we're rewriting the references to CR_TLBACC_IGN_* anyway,
we correct the name of this field to IG, which is its name in
the official CPU documentation.

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