From patchwork Mon Jun 11 10:49:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 138211 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3898099lji; Mon, 11 Jun 2018 03:53:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIUhIqNwi5IP69cea94c9U92KYivkIRdZIZCpposGUtBgJmUanYJJsLl5f4F3eV06S2egJq X-Received: by 2002:a37:cf0d:: with SMTP id e13-v6mr13381692qkj.203.1528714414556; Mon, 11 Jun 2018 03:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714414; cv=none; d=google.com; s=arc-20160816; b=fUOcqXL4mTAGb7dWZeq+WODV4Zb7MqiTyicN06JPZSs8GPIo6usAQ61HG2ffZGtH0Y FvBNynn5vR2pvdsvX8L1DYxBOg8kLTEd3I8zRODaswgD2+3DSPrGwhE6wNgVcAdbN3Yi lDMIs6H4dg61fNmYurOAFEbjSqCYZgkajtAilUD8T3DbiXXfQaBaUqRC6LkWMAtGnTRD H3oQ1otlywkKF9EAw5SMsrFEzUH/ZVkEmQ+R+qniQul+m3kpm6hx0qdC8PyBvUpBCkSp nSWpdMfa3ESgIs1iVGjOjVxFZApmd7yZFCDMqqAG8klTzLCtTCD8poJSW55EnEAWLbLf MPYA== 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:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=dMkPkqlRvM4O7IPgG6bECoUWp2Hjh3zMLl6YveG8i8M=; b=GFmm8ZsW5UQ+/+iJW6HWZ4a1N4Bty4jk+WM4R2GMDlycBPjQbnfM/z4NdZKfFwfTjX DirzwkiY2rC4Yxqger1jCxWXJGdYevlXlk3cnxqT2NjXn+BooOkxrHFiZ5HTSv9n1EUN MkTa8DyhT2xOFN2dGQdzTyVpm300+SoFQ8f4vFeDrpk425Pv4RSqVUhmn/MfjhUyQY3O r0XSAmi+FVO/jyEKnEYU6EQISIraNYdNqkjTEg7Ehi8GkKGQCGeLaX7PV9TTMvwNKb4q D/LDq/VDKqiZ1UTpS+YMVeNoRECVG08Rxzrwws2PlPSA2GRiS7kGGazYoAHDarCopDbc o7kQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l50-v6si4645781qtl.321.2018.06.11.03.53.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Jun 2018 03:53:34 -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; 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 Received: from localhost ([::1]:47665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSKRg-00056F-GF for patch@linaro.org; Mon, 11 Jun 2018 06:53:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSKOm-0002bd-OG for qemu-devel@nongnu.org; Mon, 11 Jun 2018 06:50:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSKOg-0000nm-NL for qemu-devel@nongnu.org; Mon, 11 Jun 2018 06:50:08 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:55203) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSKOg-0000m8-AU for qemu-devel@nongnu.org; Mon, 11 Jun 2018 06:50:02 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0Lvfyq-1gKK4F320C-017Xqr; Mon, 11 Jun 2018 12:49:48 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 11 Jun 2018 12:49:30 +0200 Message-Id: <20180611104935.20499-5-laurent@vivier.eu> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180611104935.20499-1-laurent@vivier.eu> References: <20180611104935.20499-1-laurent@vivier.eu> X-Provags-ID: V03:K1:IjgPmg5q801LlwIKZSY42k7eW7EjITX5dvordQC0aSBpAQGdx5H GNYnU8biMVXYKMwZlJ7YqhaWeuDBGBtm5MR7r7A/mtY61qJdBLc0BjR7PvSbqlch4PFCGk1 NzLFGxLJWIKbuVEL1BUUb7QS0uj0zYxlAg7Y5lx+VQWrSygFllGyyG27bEWfUbliHq3KQA5 Yepy5Q2/i+WLgVe78k3Mg== X-UI-Out-Filterresults: notjunk:1; V01:K0:DYHy58s5qKU=:bAipvdZuLpWTIQY7/ZO1hC wJDkuNitMD4T6FylCv+5D5zMgnt9Wlao+miWysjbu3k+xfM2dRa4zIVBhkAdhmFCwbyTweMoD 6rpb7ndjnmOQF6KYYk3X1O2ptCw1NILd9lAz/uaE/bHOqlhdJSRQ6HEOMe/w/QZ2b1n2ih6QI UrK8DGwe4yStanLQ/mqgqPTHxMpPMkjKI1hwrXvi1+Mo96Q+RwxRK9NAAKn2U/XPfaK/GW0o/ TQ1F1Zb0y5zQ8ByhDnJ6nMi32DohK2YYsw81o82MN1aMTKVjQPw0KAV93WwMn/rOf55m2YdDw O4w375dQjM5Ld0O8wEtGKWSSRQ5eNz+Wo9Z2GHJCZdmREqYMTDb3zh7F0KMfYAZQFKulAzHhJ h+LVKFdjP6hqivYDA8If+CcmNyFDuZ0Yn4rqrX16H6md+Sc3xAPI17uDFNatUkjVM4OLevV61 vt+7ywHJccdlXV7xs13deRBwB6f3m6+sQXyIEZUhb5jATyxmay6SLwM3GrLGB1nxZ0SLy/EUt o7EvwBvxgZBqU6GMX869Ze8O+hvxu8OIlhjSmBR+EGk4f4S32dHB5SZ1gf7ZzWI6Dh9HLV0S1 GUnI/jGCLpEhn8MDHnBDtNrN/y5mw0FV0VqMwdS+Dg+EtsXEC8+msBGqPqulJvb5cnTPIKZUX lfpJWVxRDULOopiaRCeym0UMK++g73k54bBDsIoZsPtwnlud5hPxLNq4FwRuDDKZVC7g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.187 Subject: [Qemu-devel] [PULL 4/9] target/m68k: Use lookup_and_goto_tb for DISAS_JUMP X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Richard Henderson , Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson These are all indirect or out-of-page direct jumps. We can indirectly chain to the next TB without going back to the main loop. Signed-off-by: Richard Henderson Message-Id: <20180512050250.12774-5-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- target/m68k/translate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.14.4 diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 6238d9edc9..4b92a20c05 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -6139,8 +6139,11 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb) update_cc_op(dc); gen_jmp_tb(dc, 0, dc->pc); break; - default: case DISAS_JUMP: + /* We updated CC_OP and PC in gen_jmp/gen_jmp_im. */ + tcg_gen_lookup_and_goto_ptr(); + break; + default: case DISAS_UPDATE: update_cc_op(dc); /* indicate that the hash table must be used to find the next TB */