* [Qemu-devel] Determine simulated pc during an exception @ 2007-04-14 22:56 eady 2007-04-14 23:03 ` Paul Brook 0 siblings, 1 reply; 3+ messages in thread From: eady @ 2007-04-14 22:56 UTC (permalink / raw) To: qemu-devel In the QEMU internals docs under exception support the following is stated... "The simulated program counter is found by retranslating the corresponding basic block and by looking where the host program counter was at the exception point." Can anyone point me to the place in the code where the simulated program counter is determined after an exception? Thanks ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Determine simulated pc during an exception 2007-04-14 22:56 [Qemu-devel] Determine simulated pc during an exception eady @ 2007-04-14 23:03 ` Paul Brook 2007-04-15 1:14 ` eady 0 siblings, 1 reply; 3+ messages in thread From: Paul Brook @ 2007-04-14 23:03 UTC (permalink / raw) To: qemu-devel; +Cc: eady > Can anyone point me to the place in the code where the simulated program > counter is determined after an exception? cpu_restore_state Paul ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Determine simulated pc during an exception 2007-04-14 23:03 ` Paul Brook @ 2007-04-15 1:14 ` eady 0 siblings, 0 replies; 3+ messages in thread From: eady @ 2007-04-15 1:14 UTC (permalink / raw) To: qemu-devel Thanks Paul for the reply, I don't see how this function is called though by the exception handler. The way I understand it is that an exception is raised via raise_interrupt(exception_index, 0, 0, 0); in helper.c which in turn calls raise_interrupt() that sends the control flow back to the main execution loop via a longjmp and then do_interrupt() is called from there. Where am I not making the connection? Thanks, Nuri Paul Brook wrote: >> Can anyone point me to the place in the code where the simulated program >> counter is determined after an exception? >> > > cpu_restore_state > > Paul > > > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-15 1:19 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-04-14 22:56 [Qemu-devel] Determine simulated pc during an exception eady 2007-04-14 23:03 ` Paul Brook 2007-04-15 1:14 ` eady
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).