From patchwork Sat May 12 05:02:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 912376 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=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="j4Qp3yq5"; dkim-atps=neutral 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 40jZp41gZCz9s08 for ; Sat, 12 May 2018 15:12:12 +1000 (AEST) Received: from localhost ([::1]:45661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHMpF-0002MM-S3 for incoming@patchwork.ozlabs.org; Sat, 12 May 2018 01:12:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHMgN-000412-Tg for qemu-devel@nongnu.org; Sat, 12 May 2018 01:03:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHMgM-0008LZ-Lk for qemu-devel@nongnu.org; Sat, 12 May 2018 01:02:59 -0400 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:44561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHMgM-0008LT-GO for qemu-devel@nongnu.org; Sat, 12 May 2018 01:02:58 -0400 Received: by mail-pl0-x243.google.com with SMTP id e6-v6so4362018plt.11 for ; Fri, 11 May 2018 22:02:58 -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; bh=TFZiFQHICSD7tSpPnk5VYIEXmQgj2zjPgKFhaAtzL7M=; b=j4Qp3yq5rGG7XoUY/MTk4zYcYCPi/XIbBh/Y9MaG5bkyM04QNkcosfVNUTzqgObpL/ QTko7B24AgyBadA9HYxsmFwZPNPeqVe3dNqH04RPIUztu8up3J8BEU0IetoC3ZkgAFNl WR4nnpeR1Rb6tei6AYd8NStmUNINKGVn2cy+4= 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; bh=TFZiFQHICSD7tSpPnk5VYIEXmQgj2zjPgKFhaAtzL7M=; b=nHVIeXuJDpM9rx8fi7VnOuhSDVRX1nyU33lvKuD/6rK47ojXTz+q2ik75WaErNewXt LglwTOaDkQPRGZFaakXBHUNbTyyFcwk1GITfeeqcMc4oYw0qyUaRzHEZviMcv/1Qd9rZ Xh0urvtjKHr2VTntCP79mayF9r6UBDXjH73TdlRQu/Yl2DbYQklngXM4/fHmSU6vJDVH JwedGJe+0xIGkBeEf6AyC8Vzqmd3cCBeN/OixVNm7thuttf0kCKd+68nkOUdwQ6rsu2Z 1DLchKPI34c/h3eQx6vRJMRHCwPCXXQfo5fEn5xYqiqngLiSMYUMaxV6qSaI6k9/6Mmg mfRg== X-Gm-Message-State: ALKqPweZpaT4YmTq6kZmmDL7Bhk+nzNpeVscmB+YVNRIXmi6CL+7xIT9 hQVFKRgyihT7LpWNUYTGTqPjt0EKKio= X-Google-Smtp-Source: AB8JxZo/AdO39+kdHPtKAapJw2MsbedlaV23Ty7NuZHQt2d8hMxwcmdgpsNZaKJSR8FgP4lUeHk89g== X-Received: by 2002:a17:902:3a5:: with SMTP id d34-v6mr1033820pld.103.1526101377184; Fri, 11 May 2018 22:02:57 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id x124-v6sm8999945pfx.72.2018.05.11.22.02.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 22:02:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 22:02:45 -0700 Message-Id: <20180512050250.12774-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512050250.12774-1-richard.henderson@linaro.org> References: <20180512050250.12774-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::243 Subject: [Qemu-devel] [PATCH 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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 --- 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 c795d8e64f..80712ed0af 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 */