Re: [PATCH v5 11/48] target/nios2: Do not zero the general registers on reset

2022-03-10 Thread Richard Henderson
On 3/10/22 04:21, Peter Maydell wrote: On Thu, 10 Mar 2022 at 11:27, Richard Henderson wrote: The bulk of the general register set is undefined on reset. They might be architecturally undefined, but for QEMU's purposes we want the state of the CPU on reset to be identical to the state it is

Re: [PATCH v5 11/48] target/nios2: Do not zero the general registers on reset

2022-03-10 Thread Peter Maydell
On Thu, 10 Mar 2022 at 11:27, Richard Henderson wrote: > > The bulk of the general register set is undefined on reset. They might be architecturally undefined, but for QEMU's purposes we want the state of the CPU on reset to be identical to the state it is in when QEMU is first started. thanks -

[PATCH v5 11/48] target/nios2: Do not zero the general registers on reset

2022-03-10 Thread Richard Henderson
The bulk of the general register set is undefined on reset. The zero register is for the most part special-cased in translate, but the slot is still exposed to gdbstub and nios2_cpu_dump_state, so continue to make sure that's zeroed. Signed-off-by: Richard Henderson --- target/nios2/cpu.c | 6 +