Re: [PATCH v4 15/33] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields

2022-03-08 Thread Richard Henderson
On 3/8/22 00:46, Peter Maydell wrote: @@ -130,24 +128,25 @@ void helper_mmu_write_tlbacc(CPUNios2State *env, uint32_t v) void helper_mmu_write_tlbmisc(CPUNios2State *env, uint32_t v) { Nios2CPU *cpu = env_archcpu(env); +uint32_t new_pid = FIELD_EX32(v, CR_TLBMISC, PID); +uint32

Re: [PATCH v4 15/33] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields

2022-03-08 Thread Peter Maydell
On Tue, 8 Mar 2022 at 07:20, Richard Henderson wrote: > > Signed-off-by: Richard Henderson > --- > target/nios2/cpu.h | 28 ++-- > target/nios2/helper.c| 7 ++- > target/nios2/mmu.c | 33 +++-- > target/nios2/translate.c |

[PATCH v4 15/33] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields

2022-03-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/nios2/cpu.h | 28 ++-- target/nios2/helper.c| 7 ++- target/nios2/mmu.c | 33 +++-- target/nios2/translate.c | 2 +- 4 files changed, 36 insertions(+), 34 deletions(-) diff --git