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: 135637 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1760033lji; Fri, 11 May 2018 22:13:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqJAROj9civ1lYyX5FuhxbZd0h1Ca8E52u+7juhzvlGZTo/FCxmd6jHHQq2jWrmm7K1M7U9 X-Received: by 2002:aed:3bcc:: with SMTP id s12-v6mr796154qte.83.1526102027247; Fri, 11 May 2018 22:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526102027; cv=none; d=google.com; s=arc-20160816; b=JP4KqXnzhXkfqLB2zPwj3vlEaOP08aH7XzM6aA1vxh/RnU20cw3VHK2HvzjLOXVEPl azboLbGKK8cE+QLis+LJQv7Zxi3QVW5nPWFPDNCt786Bxd5mfUcC7CdLktaTVn8uFOxU NKUKJP/yXkEs+RQTikxNjecso/DdlQ4D5YBTJOek67OA+GL2EbKt/rYTq6PoT9k476Ei 0QUJ8UaxpqyqRuKf1TSl78dc3U8ys7ahS4YDM5sUr2kgVURY/kPDtgRDFf9ZGYV2lDa+ Z+pxKnIAaE4M3ibLyXHomYQDnKjHZ4g0voTxUUrkOKkOZD0tieTugAgehd95i69GlJfj cfqw== 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:dkim-signature:arc-authentication-results; bh=TFZiFQHICSD7tSpPnk5VYIEXmQgj2zjPgKFhaAtzL7M=; b=Pe7uF+QiREtEiooLYaq83QVDaO0qCzxh39bZK+TbHP/Ui2luse3GUFqkAGiQhRJ+J5 w0k7sHQJyhl9886c68UB0yAILqEywjE6LLjqUc78ojiG9kNRo1hI2yp6lr+i22osj20I 3kBnBk5gUDRDVMJ4E/PHwmVC0Vz3p0+hc7RzKaRDm0I44c4rz4/dpYLdWGfPYespnQEE 7f9t50q+HzUlPdx2eilkS4K+6YSma0kv9fZ+pWEy7PiZioBdidkYws+h04mEUvkr+9bC J6oI3yYe4tJE7uak399+T1g5hyrE2nm8KVlKxKHEAyxwumdFpKRs1fdXYzyR9N8L+9I6 5E7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=j4Qp3yq5; 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: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q12-v6si3885728qtk.125.2018.05.11.22.13.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 22:13:47 -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=j4Qp3yq5; 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]:45714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHMqo-0005Yd-MO for patch@linaro.org; Sat, 12 May 2018 01:13:46 -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-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+patch=linaro.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(-) -- 2.17.0 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 */