qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] tcg_target_prologue()
@ 2008-04-11  0:57 Stuart Brady
  2008-04-11  9:32 ` Fabrice Bellard
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart Brady @ 2008-04-11  0:57 UTC (permalink / raw)
  To: qemu-devel

Hi,

I recently tried using the C version of the TB call in cpu-exec.c,
"T0 = gen_func();", with HPPA host support.  However, I must then save
the link register, or else it would be overwritten... but if I use
tcg_target_prologue(), I find that goto_tb sometimes jumps to the
prologue, but it sometimes jumps past the prologue, instead!

I've fixed the bug[1] that caused me to investigate this, so for the
time being, I'll continue calling TBs from inline assembly code, but it
might be nice to spare others the pain of trying tcg_target_prologue()
and failing.  Any thoughts?

Cheers,
-- 
Stuart Brady

[1] Apparently, frame pointer registers are best marked 'reserved'.
    Oops.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-11  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11  0:57 [Qemu-devel] tcg_target_prologue() Stuart Brady
2008-04-11  9:32 ` Fabrice Bellard

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).