All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] Clean up cpu_exec part 2/n
@ 2010-01-15  8:42 Paolo Bonzini
  2010-01-15  8:42 ` [Qemu-devel] [PATCH 1/4] clean up env->current_tb Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Paolo Bonzini @ 2010-01-15  8:42 UTC (permalink / raw)
  To: qemu-devel

The management of env->current_tb is quite complicated.  In particular,
a while loop that has it as a test condition is actually executed just
once, and it is cleared long after it has ceased being meaningful.

This patch set straightens things a bit.  Patch 1 clears env->current_tb
when it is not meaningful anymore.  Patch 2 adds assertions that test
the change done in patch 3.  These are then removed in patch 4.

I preferred to be defensive, but I'd understand squashing the three 
patches together as well.

Paolo Bonzini (4):
  clean up env->current_tb
  add assertions about env->current_tb
  change while to if
  remove assertions

 cpu-exec.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

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

end of thread, other threads:[~2010-01-19 22:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15  8:42 [Qemu-devel] [PATCH 0/4] Clean up cpu_exec part 2/n Paolo Bonzini
2010-01-15  8:42 ` [Qemu-devel] [PATCH 1/4] clean up env->current_tb Paolo Bonzini
2010-01-19 22:40   ` Anthony Liguori
2010-01-15  8:42 ` [Qemu-devel] [PATCH 2/4] add assertions about env->current_tb Paolo Bonzini
2010-01-15  8:42 ` [Qemu-devel] [PATCH 3/4] change while to if Paolo Bonzini
2010-01-15  8:42 ` [Qemu-devel] [PATCH 4/4] remove assertions Paolo Bonzini

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.