Re: [Qemu-discuss] 答复: How to execute an image under QEMU

2014-12-12 Thread Peter Maydell
On 12 December 2014 at 03:52, wrote: > Hi, Peter and all >I am still confused on that problem, I delete the code "((int > (*)(void))(env->eip))();" and just change env->eip to my image entrypoint, In > the end the qemu is crash with useful information. After executing my helper > function,

[Qemu-discuss] 答复: How to execute an image under QEMU

2014-12-11 Thread EricSong
Hi, Peter and all I am still confused on that problem, I delete the code "((int (*)(void))(env->eip))();" and just change env->eip to my image entrypoint, In the end the qemu is crash with useful information. After executing my helper function, EIP cannot go to entrypoint, but to physical add

[Qemu-discuss] 答复: How to execute an image under QEMU

2014-12-10 Thread EricSong
Hi, Peter Your explanation is very clear. We cannot do anything to host cpu. Is right? We only handle guest instruction. But how to let the guest execute image. In runtime, the Getsec instruction can execute external image. Any example for it? How about is option rom execution? I chec