[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 37/64] target/nios2: Prevent writes to read-only or reserv
From: |
Peter Maydell |
Subject: |
Re: [PATCH v7 37/64] target/nios2: Prevent writes to read-only or reserved control fields |
Date: |
Fri, 22 Apr 2022 13:56:50 +0100 |
On Thu, 21 Apr 2022 at 16:50, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> 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>
thanks
-- PMM
- [PATCH v7 29/64] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields, (continued)
- [PATCH v7 29/64] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields, Richard Henderson, 2022/04/21
- [PATCH v7 30/64] target/nios2: Move R_FOO and CR_BAR into enumerations, Richard Henderson, 2022/04/21
- [PATCH v7 31/64] target/nios2: Create EXCP_SEMIHOST for semi-hosting, Richard Henderson, 2022/04/21
- [PATCH v7 32/64] target/nios2: Clean up nios2_cpu_do_interrupt, Richard Henderson, 2022/04/21
- [PATCH v7 33/64] target/nios2: Hoist CPU_LOG_INT logging, Richard Henderson, 2022/04/21
- [PATCH v7 35/64] target/nios2: Cleanup set of CR_EXCEPTION for do_interrupt, Richard Henderson, 2022/04/21
- [PATCH v7 34/64] target/nios2: Handle EXCP_UNALIGN and EXCP_UALIGND, Richard Henderson, 2022/04/21
- [PATCH v7 36/64] target/nios2: Clean up handling of tlbmisc in do_exception, Richard Henderson, 2022/04/21
- [PATCH v7 37/64] target/nios2: Prevent writes to read-only or reserved control fields, Richard Henderson, 2022/04/21
- Re: [PATCH v7 37/64] target/nios2: Prevent writes to read-only or reserved control fields,
Peter Maydell <=
- [PATCH v7 38/64] target/nios2: Implement cpuid, Richard Henderson, 2022/04/21
- [PATCH v7 39/64] target/nios2: Implement CR_STATUS.RSIE, Richard Henderson, 2022/04/21
- [PATCH v7 42/64] target/nios2: Use tcg_constant_tl, Richard Henderson, 2022/04/21
- [PATCH v7 41/64] target/nios2: Support division error exception, Richard Henderson, 2022/04/21
- [PATCH v7 44/64] target/nios2: Split out helpers for gen_* translate macros, Richard Henderson, 2022/04/21
- [PATCH v7 43/64] target/nios2: Split out named structs for [IRJ]_TYPE, Richard Henderson, 2022/04/21
- [PATCH v7 48/64] target/nios2: Create gen_jumpr, Richard Henderson, 2022/04/21
- [PATCH v7 40/64] target/nios2: Remove CPU_INTERRUPT_NMI, Richard Henderson, 2022/04/21