qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] throwing away translated code on CPU reset
@ 2012-01-12 14:00 Peter Maydell
  2012-01-12 14:18 ` Andreas Färber
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Peter Maydell @ 2012-01-12 14:00 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Alexander Graf

When doing TCG code translation, the target-foo translate.c
code is allowed to bake assumptions into the generated code from
the current values of various fields in the CPUState. This then
imposes the requirement that if the field is changed then tb_flush
must be called to throw away the now-incorrect generated code.

However, cpu_reset() changes (unsurprisingly) lots of fields in
the CPUState, but it doesn't call tb_flush()...

So should cpu_reset() implementations be changed to call tb_flush()
as well as tlb_flush(), or is this supposed to work in some other
way?

thanks
-- PMM

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

end of thread, other threads:[~2012-01-15 16:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 14:00 [Qemu-devel] throwing away translated code on CPU reset Peter Maydell
2012-01-12 14:18 ` Andreas Färber
2012-01-13  7:55 ` 陳韋任
2012-01-13  9:08   ` Peter Maydell
2012-01-14 14:48 ` Aurelien Jarno
2012-01-15 16:43   ` Peter Maydell

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