aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-21 08:17:08 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-04-26 08:16:41 -0700
commit796945d596058516f3c66f509e1a4804e4ae198a (patch)
tree903974d1f27a1e14b5334497941b997c25d0be57 /include/hw
parentbe77e1d5fe1abaaf70d886719a4084ea9c0c5eec (diff)
downloadqemu-796945d596058516f3c66f509e1a4804e4ae198a.zip
qemu-796945d596058516f3c66f509e1a4804e4ae198a.tar.gz
qemu-796945d596058516f3c66f509e1a4804e4ae198a.tar.bz2
target/nios2: Prevent writes to read-only or reserved control fields
Create an array of masks which detail the writable and readonly bits for each control register. Apply them when writing to control registers, including the write to status during eret. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220421151735.31996-38-richard.henderson@linaro.org>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions