All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about direct block chaining
@ 2022-04-18 14:54 Taylor Simpson
  2022-04-18 15:37 ` Richard Henderson
  0 siblings, 1 reply; 4+ messages in thread
From: Taylor Simpson @ 2022-04-18 14:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, Philippe Mathieu-Daudé

I've been working on speeding up the Hexagon target by using direct block chaining.  Due to Hexagon's VLIW packet semantics (possibly multiple branches in a packet, not processing change-of-flow until packet commit), we have historically treated all change-of-flow as indirect.

I looked at the documentation here
https://qemu.readthedocs.io/en/latest/devel/tcg.html#direct-block-chaining

I implemented both approaches for inner loops and didn't see speedup in my benchmark.  So, I have a couple of questions
1) What are the pros and cons of the two approaches (lookup_and_goto_ptr and goto_tb + exit_tb)?
2) How can I verify that direct block chaining is working properly?
      With -d exec, I see lines like the following with goto_tb + exit_tb but NOT lookup_and_goto_ptr
      Linking TBs 0x7fda44172e00 [0050ac38] index 1 -> 0x7fda44173b40 [0050ac6c]

Thanks,
Taylor



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

end of thread, other threads:[~2022-04-19 10:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 14:54 Question about direct block chaining Taylor Simpson
2022-04-18 15:37 ` Richard Henderson
2022-04-19  6:02   ` Taylor Simpson
2022-04-19 10:24     ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.