From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEDPw-0004B7-M2 for qemu-devel@nongnu.org; Sun, 21 Oct 2018 09:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEDLZ-0004qo-AF for qemu-devel@nongnu.org; Sun, 21 Oct 2018 09:00:48 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:37925) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEDLZ-0004qF-3Q for qemu-devel@nongnu.org; Sun, 21 Oct 2018 09:00:45 -0400 Received: by mail-wm1-x335.google.com with SMTP id 193-v6so7642876wme.3 for ; Sun, 21 Oct 2018 06:00:44 -0700 (PDT) References: <20181019010625.25294-1-cota@braap.org> <20181019010625.25294-14-cota@braap.org> From: Richard Henderson Message-ID: Date: Sun, 21 Oct 2018 14:00:41 +0100 MIME-Version: 1.0 In-Reply-To: <20181019010625.25294-14-cota@braap.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 13/56] lm32: convert to cpu_halted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , qemu-devel@nongnu.org Cc: Paolo Bonzini , Michael Walle On 10/19/18 2:05 AM, Emilio G. Cota wrote: > Cc: Michael Walle > Signed-off-by: Emilio G. Cota > --- > target/lm32/op_helper.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson +++ b/target/lm32/op_helper.c > @@ -31,7 +31,7 @@ void HELPER(hlt)(CPULM32State *env) > { > CPUState *cs = CPU(lm32_env_get_cpu(env)); > > - cs->halted = 1; > + cpu_halted_set(cs, 1); > cs->exception_index = EXCP_HLT; > cpu_loop_exit(cs); I am beginning to think this sequence of three should be its own helper... r~