[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] longjmp in qemu
From: |
Xin Tong |
Subject: |
Re: [Qemu-devel] longjmp in qemu |
Date: |
Sun, 29 Jan 2012 14:52:56 -0500 |
anyone cares to answer. I appreciate it.
Thanks
Xin
On Sat, Jan 28, 2012 at 5:17 PM, Xin Tong <address@hidden> wrote:
> I am investigating what longjmp is used for in qemu.
>
> longjmp is used in a couple of places.
>
> 1.
> void cpu_loop_exit(void)
> {
> env->current_tb = NULL;
> longjmp(env->jmp_env, 1);
> }
>
> cpu_loop_exit is called when there is an interrupt_request or exit_request
> pending
>
> 2.
> void cpu_resume_from_signal(CPUState *env1, void *puc)
> {
> ...
> longjmp(env->jmp_env, 1);
> }
>
> cpu_resume_from_signal is called in a couple of places, each of which
> suggests something faulty has happened. my guess is that it will get call
> when exceptions have occurred in the code cache. Am I right ?
>
>
> Thanks
>
>
> Xin
>
>
>