qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] tcg: How CPUState::current_tb is used?
@ 2016-05-02 19:54 Sergey Fedorov
  2016-05-02 20:18 ` [Qemu-devel] tcg: How 'CPUState::current_tb' " Sergey Fedorov
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Fedorov @ 2016-05-02 19:54 UTC (permalink / raw)
  To: QEMU Developers
  Cc: Alex Bennée, Paolo Bonzini, Richard Henderson, Blue Swirl,
	Riku Voipio

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

Hi,

I can't figure out how this field is used. The comment says it's
"Currently executing TB", but actually it's the first TB in a chain of
TBs executed. Grep shows the only place it is really checked is
tb_invalidate_phys_page_range(). That code seems to be introduced long
ago in:

    commit ea1c18022edd0e2c45552d6fc2da6e15a3486b33
    Author: bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
    Date:   Mon Jun 14 18:56:36 2004 +0000

        fixed self modifying code in case of asynchronous interrupt


I suspect it's only related to user emulation. But I would appreciate if
someone could give me an idea of how this really works :)

Thanks,
Sergey

[-- Attachment #2: Type: text/html, Size: 998 bytes --]

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

end of thread, other threads:[~2016-05-03  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 19:54 [Qemu-devel] tcg: How CPUState::current_tb is used? Sergey Fedorov
2016-05-02 20:18 ` [Qemu-devel] tcg: How 'CPUState::current_tb' " Sergey Fedorov
2016-05-03  0:02   ` Peter Maydell
2016-05-03  9:56     ` Sergey Fedorov

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