restore pc in cpu_exec_nocache()
Hello all :
I am wondering to know why we must call cpu_pc_from_tb() in the function cpu_exec_nocache() . I found the function cpu_exec_nocache() with comments :“Restore PC. This may happen if async event occurs before the TB starts executing." But I don't know what would happen if async event occurs. Thanks a los.
王旭东
Email: [email protected]
Quoted 5 lines · wangxd
Hello all :
I am wondering to know why we must callcpu_pc_from_tb()in the functioncpu_exec_nocache(). I found the functioncpu_exec_nocache()with comments :“Restore PC. This may happen if async event occurs before the TB starts executing." But I don't know what would happen if async event occurs.
Current QEMU source code doesn't have such a function call. You might like to look at the current source code first, which may make it clearer what it is doing.
thanks
-- PMM