Re: [PATCH v4 09/33] target/nios2: Split control registers away from general registers

2022-03-08 Thread Peter Maydell
On Tue, 8 Mar 2022 at 07:20, Richard Henderson wrote: > > Place the control registers into their own array, env->ctrl[]. > > Use an anonymous union and struct to give the entries in the > array distinct names, so that one may write env->foo instead > of env->ctrl[CR_FOO]. > > Signed-off-by: Richar

[PATCH v4 09/33] target/nios2: Split control registers away from general registers

2022-03-07 Thread Richard Henderson
Place the control registers into their own array, env->ctrl[]. Use an anonymous union and struct to give the entries in the array distinct names, so that one may write env->foo instead of env->ctrl[CR_FOO]. Signed-off-by: Richard Henderson --- target/nios2/cpu.h | 64 ++--