* [Qemu-devel] tcg_qemu_tb_exec...
@ 2012-06-03 20:44 Davide Ferraretto
2012-06-04 9:00 ` 陳韋任 (Wei-Ren Chen)
0 siblings, 1 reply; 2+ messages in thread
From: Davide Ferraretto @ 2012-06-03 20:44 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
I'm in qemu-arm.
tcg_qemu_tb_exec function is a macro:
#define tcg_qemu_tb_exec(env, tb_ptr) \
((long REGPARM (*)(void *, void *))code_gen_prologue)(env, tb_ptr)
#endif
I don't understand what function calls. where is code of
code_gen_prologue???
[-- Attachment #2: Type: text/html, Size: 813 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] tcg_qemu_tb_exec...
2012-06-03 20:44 [Qemu-devel] tcg_qemu_tb_exec Davide Ferraretto
@ 2012-06-04 9:00 ` 陳韋任 (Wei-Ren Chen)
0 siblings, 0 replies; 2+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-06-04 9:00 UTC (permalink / raw)
To: Davide Ferraretto; +Cc: qemu-devel
On Sun, Jun 03, 2012 at 10:44:32PM +0200, Davide Ferraretto wrote:
> I'm in qemu-arm.
> tcg_qemu_tb_exec function is a macro:
> #define tcg_qemu_tb_exec(env, tb_ptr) \
> ((long REGPARM (*)(void *, void *))code_gen_prologue)(env, tb_ptr)
> #endif
QEMU treats execution in code cache as a function call. As you might know,
function has its prologue/epilogue, the "code_gen_prologue" stores the
prologue/epilogue code. After executing prologue, it'll jump to the code cache
(tb_ptr), then back to epilogue, finally return to QEMU.
Regards,
chenwj
[1] http://en.wikipedia.org/wiki/Function_prologue
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-04 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-03 20:44 [Qemu-devel] tcg_qemu_tb_exec Davide Ferraretto
2012-06-04 9:00 ` 陳韋任 (Wei-Ren Chen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).