Re: [PATCH v4 22/33] target/nios2: Introduce dest_gpr

2022-03-08 Thread Richard Henderson
On 3/8/22 01:07, Peter Maydell wrote: I assume the TCG dead-code elimination will mostly throw away the write-to-R_ZERO stuff, but here for rdctl I suspect it won't. I believe it will. We don't indicate that normal load has side effects (as opposed to guest load), so it should all fall out of

Re: [PATCH v4 22/33] target/nios2: Introduce dest_gpr

2022-03-08 Thread Peter Maydell
On Tue, 8 Mar 2022 at 07:20, Richard Henderson wrote: > > Constrain all references to cpu_R[] to load_gpr and dest_gpr. > This will be required for supporting shadow register sets. > > Signed-off-by: Richard Henderson > --- > target/nios2/translate.c | 144 +++

[PATCH v4 22/33] target/nios2: Introduce dest_gpr

2022-03-07 Thread Richard Henderson
Constrain all references to cpu_R[] to load_gpr and dest_gpr. This will be required for supporting shadow register sets. Signed-off-by: Richard Henderson --- target/nios2/translate.c | 144 +++ 1 file changed, 55 insertions(+), 89 deletions(-) diff --git a/ta