Skip to contentSkip to conversation

restore pc in cpu_exec_nocache()

Qemu-devel wangxd 2 participants 2 messages Dec 1, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

wangxd

author
#1 lore raw

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]

#2 lore raw
Quoted 5 lines · wangxd

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.

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