Received: from eggs.gnu.org ([2001:4830:134:3::10]:49738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b09sN-0001g7-24 for qemu-devel@nongnu.org; Tue, 10 May 2016 11:47:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b09sI-0008TS-DX for qemu-devel@nongnu.org; Tue, 10 May 2016 11:47:09 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:35313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b09sH-0008Se-P4 for qemu-devel@nongnu.org; Tue, 10 May 2016 11:47:06 -0400 Received: by mail-lf0-x22d.google.com with SMTP id j8so19605093lfd.2 for ; Tue, 10 May 2016 08:47:05 -0700 (PDT) From: Sergey Fedorov Date: Tue, 10 May 2016 18:46:40 +0300 Message-Id: <1462895205-8411-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?= 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 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