Re: [PATCH 1/2] target/nios2: Move cpu_pic code into CPU object proper

2020-11-28 Thread Peter Maydell
On Sat, 28 Nov 2020 at 05:50, Wu, Wentong wrote: > The code looks ok to me, and I tested the changes on Zephyr project, it works > well. > > But, according > https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii52006.pdf > , > The Nios II processor offers tw

RE: [PATCH 1/2] target/nios2: Move cpu_pic code into CPU object proper

2020-11-27 Thread Wu, Wentong
On 11/28/20 3:13 AM, Peter Maydell wrote: > The nios2 code uses an old style of interrupt handling, where a separate > standalone set of qemu_irqs invoke a function > nios2_pic_cpu_handler() which signals the interrupt to the CPU proper by > directly calling cpu_interrupt() and cpu_reset_interr

Re: [PATCH 1/2] target/nios2: Move cpu_pic code into CPU object proper

2020-11-27 Thread Philippe Mathieu-Daudé
On 11/27/20 8:12 PM, Peter Maydell wrote: > The nios2 code uses an old style of interrupt handling, where a > separate standalone set of qemu_irqs invoke a function > nios2_pic_cpu_handler() which signals the interrupt to the CPU proper > by directly calling cpu_interrupt() and cpu_reset_interrupt(