Re: [Qemu-devel] longjmp in qemu

2012-01-31 Thread 陳韋任
On Sat, Jan 28, 2012 at 05:17:56PM -0500, Xin Tong 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 th

Re: [Qemu-devel] longjmp in qemu

2012-01-29 Thread Xin Tong
anyone cares to answer. I appreciate it. Thanks Xin On Sat, Jan 28, 2012 at 5:17 PM, Xin Tong 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

[Qemu-devel] longjmp in qemu

2012-01-28 Thread Xin Tong
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_signa