Message ID | 20170906160612.22769-20-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | f62bd897e64c6fb1f93e8795e835980516fe53b5 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp1139591qge; Wed, 6 Sep 2017 09:23:27 -0700 (PDT) X-Received: by 10.55.118.3 with SMTP id r3mr4065198qkc.8.1504715006664; Wed, 06 Sep 2017 09:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504715006; cv=none; d=google.com; s=arc-20160816; b=Yhc2I9nDJhEnj59pcYzxMSrmwyc3SQjpvMk3tsR8eYatgMnLAnK/bT7gmQubVZwQ3T aBHF8ZlSFfVdlR+EJBkZjG4ED1pYI6JM4AINkzZS72F5X7Wxg3XtznLOVyQw0UEsTYAK DeUi+79dCZDpIfsPmKSpDCOHdqkcMlrOpP6ciRYY9WB/OYIUc2/fGFxJovs3KXirrXpf scjXPG3Gxks0OhE4oxCtQc7Mw0rskGPDPVkdT6tiWD6mHMFss65viZLQyJR7ro/eFC6W wMBs8RT+sXh5W1Tz3d0NZhrI96KUAExCh6SQzvryqF4+vRcSU9nmTZ7TpLscaTEoXY/R vchQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=mV9q2OZFA8DKM3HzKR5SvCdCSSgw5pdh1P+rBA4ZOSE=; b=QPusmwnInIP6d10WPaUJRgY8IUgd1/UkY/Yc9z+8xU95m0ZrCde7pKgygsl9HqMcZl HMPPr1HxcymEfAtXqYz1tw4fZE/yF0Dd8yLFLBrtE7yrfhzrxeC2gUfYnukKgNR+/4Ir 9xITKu1We6F6W+i2x7kBDsZ/g/Od5kYoYbwvz3yEpgjvpFBlZ6v1aiUaAhLb3KhvbSLS KyWSd//4ynd0IFxTcnu7096hPiViyZNW5RNNYkfZK2I/cwYqxyCQjGJRScUBoEJTo4Dj vhLipVsMEpMVoeQzqpXRUujwQJPqQQY08HfhJMUAJ79Kime5aYN5sHdN+sBZ3v2Y2r2g VyWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cilY5cuq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i34si228925qtb.207.2017.09.06.09.23.26 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 06 Sep 2017 09:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cilY5cuq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1dpd6q-0005mX-29 for patch@linaro.org; Wed, 06 Sep 2017 12:23:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dpcqk-0000JX-2p for qemu-devel@nongnu.org; Wed, 06 Sep 2017 12:06:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dpcqf-0002Ub-TQ for qemu-devel@nongnu.org; Wed, 06 Sep 2017 12:06:46 -0400 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:35366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dpcqf-0002TM-Nt for qemu-devel@nongnu.org; Wed, 06 Sep 2017 12:06:41 -0400 Received: by mail-pf0-x229.google.com with SMTP id g13so13483540pfm.2 for <qemu-devel@nongnu.org>; Wed, 06 Sep 2017 09:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mV9q2OZFA8DKM3HzKR5SvCdCSSgw5pdh1P+rBA4ZOSE=; b=cilY5cuqj3E6xrFOdq+jEBJyOrlOA04CQEGfzawOytlf5ypjR3snd5GGWKaZqbWB8N DeFJAV+XnT7jgjGanvb0TDqFX8oYnw2qKUaYYJY/mG3wYIG6pvy6Xn7+H2FpdYbDmAny Rd8YxAu7s57NM5pRT3dDW8h8JoQM0CTyhfB+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mV9q2OZFA8DKM3HzKR5SvCdCSSgw5pdh1P+rBA4ZOSE=; b=mzZHskps9lhPpt/SqihTdgiEjsX3LijG9+Fwta1x3CnQ9+muDvMSKkAtgDXbJ6x1s0 M9M3kqd4ii4G8J9CmTPTf0utgRGAfcXj7SDcqI55QrXqLG7aSLcbdB5LbqnwgCjwiCtN /6ip91kRcailyLsUevWzqi/mwZLW689G6TtgKPgdS/YfirbOh9+vADuJh9notBs0k0Ie 5wrPCkTvrkgSwyr2qpVpsiPGG88gpCnRfrde4XkRKGY3yEyj9Hp+5RCy8hkmFPaL4sBN lwEK/yoGiDXBty3tMbb+NTFFmOvPcWEDQ0PMONnxcjruPqd0BblZvw4Q7LZzoomwxXvf Rw9Q== X-Gm-Message-State: AHPjjUiERyJmdVQpKnTb3PubHZnn+O19NDdteRPw47VEdzrktZhvT7zs 8xFYSfDnFHqpUfXRexqTsg== X-Google-Smtp-Source: ADKCNb7bT984lKfrrL348k3UTtBh1sB7xGX3THak22iWkW8L3Lo09kCwi9RTFYSVx0yS+3iSjsP9IQ== X-Received: by 10.101.75.136 with SMTP id t8mr7868604pgq.359.1504714000576; Wed, 06 Sep 2017 09:06:40 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id t65sm262863pfk.59.2017.09.06.09.06.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Sep 2017 09:06:39 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Wed, 6 Sep 2017 09:05:59 -0700 Message-Id: <20170906160612.22769-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170906160612.22769-1-richard.henderson@linaro.org> References: <20170906160612.22769-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::229 Subject: [Qemu-devel] [PULL 19/32] target/arm: [tcg] Port to insn_start X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, =?utf-8?q?Llu=C3=ADs_Vilanova?= <vilanova@ac.upc.edu>, Richard Henderson <rth@twiddle.net> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg generic translate loop
|
expand
|
diff --git a/target/arm/translate.c b/target/arm/translate.c index 3138a23e0c..005157225c 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -11936,6 +11936,16 @@ static void arm_tr_tb_start(DisasContextBase *dcbase, CPUState *cpu) } } +static void arm_tr_insn_start(DisasContextBase *dcbase, CPUState *cpu) +{ + DisasContext *dc = container_of(dcbase, DisasContext, base); + + dc->insn_start_idx = tcg_op_buf_count(); + tcg_gen_insn_start(dc->pc, + (dc->condexec_cond << 4) | (dc->condexec_mask >> 1), + 0); +} + /* generate intermediate code for basic block 'tb'. */ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb) { @@ -11979,10 +11989,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb) do { dc->base.num_insns++; - dc->insn_start_idx = tcg_op_buf_count(); - tcg_gen_insn_start(dc->pc, - (dc->condexec_cond << 4) | (dc->condexec_mask >> 1), - 0); + arm_tr_insn_start(&dc->base, cs); if (unlikely(!QTAILQ_EMPTY(&cs->breakpoints))) { CPUBreakpoint *bp;