Received: from eggs.gnu.org ([2001:4830:134:3::10]:46087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0RHO-0002Ol-Hd for qemu-devel@nongnu.org; Wed, 11 May 2016 06:22:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0RHJ-0000ZJ-9q for qemu-devel@nongnu.org; Wed, 11 May 2016 06:22:09 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:33029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0RHH-0000Ym-VG for qemu-devel@nongnu.org; Wed, 11 May 2016 06:22:05 -0400 Received: by mail-lf0-x22b.google.com with SMTP id y84so44410151lfc.0 for ; Wed, 11 May 2016 03:22:03 -0700 (PDT) From: Sergey Fedorov Date: Wed, 11 May 2016 13:21:46 +0300 Message-Id: <1462962111-32237-1-git-send-email-sergey.fedorov@linaro.org> Subject: [Qemu-devel] [PATCH 0/5] cpu-exec: Restructure cpu_exec() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sergey Fedorov , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Paolo Bonzini , Peter Crosthwaite From: Sergey Fedorov cpu_exec() was a huge function also sprinkled with some preprocessor directives. It was hard to read and see the main loop crowded by all this code. Restructure cpu_exec() by moving its conceptual parts into separate static inline functions. That makes it possible to see the whole main loop at once, especially its sigsetjmp() handling part. This series is based on commit 40f646483a11 (cpu-exec: Remove relic orphaned comment) from git://github.com/rth7680/qemu.git tcg-next and is available at git://github.com/sergefdrv/qemu.git cpu_exec-restructure-v2 Summary of changes in v2: * Declare x86_cpu variable in the inner-most block [PATCH 1/5] Sergey Fedorov (5): cpu-exec: Move halt handling out of cpu_exec() cpu-exec: Move exception handling out of cpu_exec() cpu-exec: Move interrupt handling out of cpu_exec() cpu-exec: Move TB execution stuff out of cpu_exec() cpu-exec: Remove unused 'x86_cpu' and 'env' from cpu_exec() cpu-exec.c | 395 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 211 insertions(+), 184 deletions(-) -- 1.9.1