Received: from eggs.gnu.org ([2001:4830:134:3::10]:43268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0e7w-0006k2-O4 for qemu-devel@nongnu.org; Wed, 11 May 2016 20:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0e7s-0004ZG-Fe for qemu-devel@nongnu.org; Wed, 11 May 2016 20:05:15 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:36174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0e7s-0004ZA-BC for qemu-devel@nongnu.org; Wed, 11 May 2016 20:05:12 -0400 Received: by mail-qk0-x244.google.com with SMTP id l68so4233910qkf.3 for ; Wed, 11 May 2016 17:05:12 -0700 (PDT) Sender: Richard Henderson References: <1462962111-32237-1-git-send-email-sergey.fedorov@linaro.org> From: Richard Henderson Message-ID: <83340935-c353-413b-8684-823efd51f960@twiddle.net> Date: Wed, 11 May 2016 14:05:05 -1000 MIME-Version: 1.0 In-Reply-To: <1462962111-32237-1-git-send-email-sergey.fedorov@linaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/5] cpu-exec: Restructure cpu_exec() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov , qemu-devel@nongnu.org Cc: Sergey Fedorov , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Paolo Bonzini , Peter Crosthwaite On 05/11/2016 12:21 AM, Sergey Fedorov wrote: > 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(-) > Applied to tcg-next. r~