Received: from eggs.gnu.org ([2001:4830:134:3::10]:36629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0APP-0006Ls-SH for qemu-devel@nongnu.org; Tue, 10 May 2016 12:21:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0APF-0003f8-9L for qemu-devel@nongnu.org; Tue, 10 May 2016 12:21:14 -0400 Received: from mail-qg0-x243.google.com ([2607:f8b0:400d:c04::243]:33192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0APF-0003ee-3W for qemu-devel@nongnu.org; Tue, 10 May 2016 12:21:09 -0400 Received: by mail-qg0-x243.google.com with SMTP id 90so1037127qgz.0 for ; Tue, 10 May 2016 09:21:09 -0700 (PDT) Sender: Richard Henderson References: <1462895205-8411-1-git-send-email-sergey.fedorov@linaro.org> <1462895205-8411-3-git-send-email-sergey.fedorov@linaro.org> From: Richard Henderson Message-ID: <25148458-e203-e333-d5df-af7f69f7ec5c@twiddle.net> Date: Tue, 10 May 2016 06:21:04 -1000 MIME-Version: 1.0 In-Reply-To: <1462895205-8411-3-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 2/5] cpu-exec: Move exception handling out of 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/10/2016 05:46 AM, Sergey Fedorov wrote: > From: Sergey Fedorov > > Simplify cpu_exec() by extracting exception handling code out of > cpu_exec() into a new static inline function cpu_handle_exception(). > Also make cpu_handle_debug_exception() inline as it is used only once. If it's used only once, the compiler is going to do this anyway, and therefore there's no point in making the change. Let's just leave off all the inline markers and trust the compiler, eh? Otherwise, Reviewed-by: Richard Henderson r~