]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-exec.c
cpu-exec: simplify icount code
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:12:22 +0000 (12:12 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Feb 2015 06:27:20 +0000 (09:27 +0300)
commit52851b7e3d816502b8ae4e8353f31fd9ee801509
treedf8d97a8a89bc441f5304ba5b198470686a2191e
parenta7fa2e9783ee957635d23ddab151a8be97df5b2a
cpu-exec: simplify icount code

Use MIN instead of an "if" statement.  Move "tb" assignment where
the value is actually used.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
cpu-exec.c