Re: [PATCH 2/2] target/nios2: Move nios2_check_interrupts() into target/nios2

2020-11-27 Thread Philippe Mathieu-Daudé
On 11/27/20 8:12 PM, Peter Maydell wrote: > The function nios2_check_interrupts)() looks only at CPU-internal > state; it belongs in target/nios2, not hw/nios2. Move it into the > same file as its only caller, so it can just be local to that file. > > This removes the only remaining code from

[PATCH 2/2] target/nios2: Move nios2_check_interrupts() into target/nios2

2020-11-27 Thread Peter Maydell
The function nios2_check_interrupts)() looks only at CPU-internal state; it belongs in target/nios2, not hw/nios2. Move it into the same file as its only caller, so it can just be local to that file. This removes the only remaining code from cpu_pic.c, so we can delete that file entirely.