[Qemu-devel] A strange segmentation fault

2007-03-25 Thread Heng Yin
Hi Qemu developers, I'm running into a strange problem, when I do some implementation on Qemu. In target_i386/op.c, if I add a function call in the following function, Qemu will crash immediately after execution. void OPPROTO op_jnz_T0_label(void) { helper_test(T0); //this is the functio

Re: [Qemu-devel] a strange segmentation fault

2006-12-06 Thread Heng Yin
Paul, Thank you! I didn't know it, as nobody told me. :) Heng Paul Brook wrote: helper_test(T0); //my own function if (T0) GOTO_LABEL_PARAM(1); FORCE_RET(); ops that use GOTO_LABEL_PARM or EXIT_TB must not have a stack frame. Paul __

Re: [Qemu-devel] a strange segmentation fault

2006-12-06 Thread Paul Brook
> helper_test(T0); //my own function > if (T0) > GOTO_LABEL_PARAM(1); > FORCE_RET(); ops that use GOTO_LABEL_PARM or EXIT_TB must not have a stack frame. Paul ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongn

[Qemu-devel] a strange segmentation fault

2006-12-06 Thread Heng Yin
Hi QEMU developers, I'm running into a strange problem when I add some my own stuff in QEMU. If I add a function call in the following position, QEMU will crash immediately after execution. In target-i386/op.c: void OPPROTO op_jnz_T0_label(void) { helper_test(T0); //my own function if