Received: from eggs.gnu.org ([2001:4830:134:3::10]:53061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLEC5-0006WN-VR for qemu-devel@nongnu.org; Wed, 14 Jun 2017 15:43:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLEC2-0007Cp-TJ for qemu-devel@nongnu.org; Wed, 14 Jun 2017 15:43:10 -0400 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:35770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLEC2-0007Ce-P5 for qemu-devel@nongnu.org; Wed, 14 Jun 2017 15:43:06 -0400 Received: by mail-qt0-x22d.google.com with SMTP id w1so12839918qtg.2 for ; Wed, 14 Jun 2017 12:43:06 -0700 (PDT) Sender: Richard Henderson References: <20170614140209.29847-1-alex.bennee@linaro.org> <20170614140209.29847-4-alex.bennee@linaro.org> <09a35585-d876-6c9e-7045-8cda418455e0@twiddle.net> <9daac065-1738-f872-0267-94cffa96ab6d@twiddle.net> <87zidamlrf.fsf@linaro.org> From: Richard Henderson Message-ID: <4da39e8f-a0ad-8e16-2275-597746c1c2a2@twiddle.net> Date: Wed, 14 Jun 2017 12:43:00 -0700 MIME-Version: 1.0 In-Reply-To: <87zidamlrf.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v1 3/3] tcg-runtime: short-circuit lookup_tb_ptr on IRQs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: Paolo Bonzini , peter.maydell@linaro.org, cota@braap.org, qemu-devel@nongnu.org On 06/14/2017 12:07 PM, Alex Bennée wrote: > > Richard Henderson writes: > >> On 06/14/2017 10:08 AM, Paolo Bonzini wrote: >>> And MIPS: >>> >>> diff --git a/target/mips/translate.c b/target/mips/translate.c >>> index 559f8fed89..244f3cb9ab 100644 >>> --- a/target/mips/translate.c >>> +++ b/target/mips/translate.c >>> @@ -13403,8 +13403,9 @@ static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs) >>> save_cpu_state(ctx, 1); >>> gen_helper_ei(t0, cpu_env); >>> gen_store_gpr(t0, rs); >>> - /* Stop translation as we may have switched the execution mode */ >>> - ctx->bstate = BS_STOP; >>> + /* BS_STOP isn't good enough here, reevaluate cpu_mips_hw_interrupts_enabled. */ >>> + gen_save_pc(ctx->pc + 4); >>> + ctx->bstate = BS_EXCP; >>> tcg_temp_free(t0); >>> } >>> break; >>> >>> The others seem okay. >> >> Thanks for this bit. We also need to fix SSM for s390x. > > If your rolling a series for all these can you also pick up Thomas > Huth's fix for --accel? Will do. r~