Re: How does qemu detect the completion of interrupt execution?

2021-09-06 Thread Peter Maydell
On Mon, 6 Sept 2021 at 03:47, Duo jia wrote: > > Thank you for your explanation. > >> And finishing the execution of the interrupt routine will automatically >> allow a pending second interrupt to be taken immediately > > > I think this is a hardware feature. But how to achieve it with qemu That

Re: How does qemu detect the completion of interrupt execution?

2021-09-05 Thread Duo jia
Thank you for your explanation. And finishing the execution of the interrupt routine will automatically > allow a pending second interrupt to be taken immediately > I think this is a hardware feature. But how to achieve it with qemu Peter Maydell 于2021年9月3日周五 下午7:20写道: > On Fri, 3 Sept 2021 a

Re: How does qemu detect the completion of interrupt execution?

2021-09-03 Thread Peter Maydell
On Fri, 3 Sept 2021 at 11:54, Duo jia wrote: > > I do some support on STM8 arch, the reference manual link is: >> >> https://www.st.com/resource/en/reference_manual/cd00218714-stm8l050j3-stm8l051f3-stm8l052c6-stm8l052r8-mcus-and-stm8l151l152-stm8l162-stm8al31-stm8al3l-lines-stmicroelectronics.pdf

Re: How does qemu detect the completion of interrupt execution?

2021-09-03 Thread Duo jia
I do some support on STM8 arch, the reference manual link is: > > > https://www.st.com/resource/en/reference_manual/cd00218714-stm8l050j3-stm8l051f3-stm8l052c6-stm8l052r8-mcus-and-stm8l151l152-stm8l162-stm8al31-stm8al3l-lines-stmicroelectronics.pdf Chapter 12 describes interrupts as blow: [image:

Re: How does qemu detect the completion of interrupt execution?

2021-09-03 Thread Peter Maydell
On Fri, 3 Sept 2021 at 09:33, Duo jia wrote: > > I understand the hardware,but How to achieve this function with qemu?, > > For example, this interrupt is not allowed to be nested. When the new > interrupt comes, how can I detect that the interrupt is executing? That depends on the hardware. I c

Re: How does qemu detect the completion of interrupt execution?

2021-09-03 Thread Duo jia
I understand the hardware,but How to achieve this function with qemu?, For example, this interrupt is not allowed to be nested. When the new interrupt comes, how can I detect that the interrupt is executing? Peter Maydell 于2021年9月2日周四 下午3:43写道: > On Thu, 2 Sept 2021 at 03:18, Duo jia wrote: >

Re: How does qemu detect the completion of interrupt execution?

2021-09-02 Thread Peter Maydell
On Thu, 2 Sept 2021 at 03:18, Duo jia wrote: > > Hi, >thank you for your response. >As you say >> >> "End of interrupt handling is entirely dependent on what the >> guest hardware being emulated is. Usually the guest software >> will indicate "interrupt handled" back to the interrupt >>

Re: How does qemu detect the completion of interrupt execution?

2021-09-01 Thread Duo jia
Hi, thank you for your response. As you say > " > *End of interrupt handling is entirely dependent on what the* > *guest hardware being emulated is. Usually the guest software* > *will indicate "interrupt handled" back to the interrupt* > *controller (perhaps by writing a register; depend

Re: How does qemu detect the completion of interrupt execution?

2021-08-10 Thread Duo jia
Thank you for the detailed explanation. Peter Maydell 于2021年8月6日周五 下午6:16写道: > > On Fri, 6 Aug 2021 at 07:24, Duo jia wrote: > > I am simulating a device. When an interrupt occurs, another interrupt > > comes, and the second interrupt will not be triggered because the > > first interrupt has not

Re: How does qemu detect the completion of interrupt execution?

2021-08-06 Thread Peter Maydell
On Fri, 6 Aug 2021 at 07:24, Duo jia wrote: > I am simulating a device. When an interrupt occurs, another interrupt > comes, and the second interrupt will not be triggered because the > first interrupt has not yet finished. > > I want to know whether qemu can detect whether the interrupt has been