tcg_target_prologue()
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,
Signature · 4 lines
Stuart Brady
[1] Apparently, frame pointer registers are best marked 'reserved'.
Oops.Quoted 8 lines · Stuart Brady
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 usetcg_target_prologue(), I find thatgoto_tbsometimes jumps to the prologue, but it sometimes jumps past the prologue, instead!
Quoted 4 lines
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?
The real fix is in the TCG TODO list (global prologue and epilogue). I will try to implement it ASAP.
Regards,
Fabrice.