qemu-e2k/target/nios2
Richard Henderson 796945d596 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>
2022-04-26 08:16:41 -07:00
..
cpu-param.h
cpu.c target/nios2: Prevent writes to read-only or reserved control fields 2022-04-26 08:16:41 -07:00
cpu.h target/nios2: Prevent writes to read-only or reserved control fields 2022-04-26 08:16:41 -07:00
helper.c target/nios2: Clean up handling of tlbmisc in do_exception 2022-04-26 08:16:41 -07:00
helper.h target/nios2: Split out helper for eret instruction 2022-04-26 08:16:41 -07:00
Kconfig
meson.build target/nios2: Build helper.c for system only 2022-04-26 08:16:40 -07:00
mmu.c target/nios2: Use hw/registerfields.h for CR_TLBMISC fields 2022-04-26 08:16:41 -07:00
mmu.h
monitor.c
nios2-semi.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
op_helper.c target/nios2: Prevent writes to read-only or reserved control fields 2022-04-26 08:16:41 -07:00
trace-events
translate.c target/nios2: Prevent writes to read-only or reserved control fields 2022-04-26 08:16:41 -07:00