Re: [PATCH v5 06/48] target/nios2: Fix BRET instruction

2022-03-10 Thread Peter Maydell
On Thu, 10 Mar 2022 at 11:27, Richard Henderson wrote: > > We had failed to copy BSTATUS back to STATUS, and diagnose > supervisor-only. The spec is light on the specifics of the > implementation of bret, but it is an easy assumption that > the restore into STATUS should work the same as eret. >

[PATCH v5 06/48] target/nios2: Fix BRET instruction

2022-03-10 Thread Richard Henderson
We had failed to copy BSTATUS back to STATUS, and diagnose supervisor-only. The spec is light on the specifics of the implementation of bret, but it is an easy assumption that the restore into STATUS should work the same as eret. Therefore, reuse the existing helper_eret. Reported-by: Peter Mayd