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: 927598 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4148v644lvz9rxs for ; Mon, 11 Jun 2018 20:50:58 +1000 (AEST) Received: from localhost ([::1]:47649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSKPY-0002f6-7g for incoming@patchwork.ozlabs.org; Mon, 11 Jun 2018 06:50:56 -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+incoming=patchwork.ozlabs.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(-) 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 */