From nobody Fri Dec 19 20:13:10 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1493754288820972.8326220526815; Tue, 2 May 2017 12:44:48 -0700 (PDT) Received: from localhost ([::1]:33419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5dj5-000315-Bl for importer@patchew.org; Tue, 02 May 2017 15:44:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5dOa-000266-V5 for qemu-devel@nongnu.org; Tue, 02 May 2017 15:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5dOZ-0001qs-H6 for qemu-devel@nongnu.org; Tue, 02 May 2017 15:23:36 -0400 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:34983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5dOZ-0001qa-Bn for qemu-devel@nongnu.org; Tue, 02 May 2017 15:23:35 -0400 Received: by mail-qt0-x243.google.com with SMTP id o36so21704318qtb.2 for ; Tue, 02 May 2017 12:23:35 -0700 (PDT) Received: from bigtime.twiddle.net.com ([2602:47:d954:1500:5e51:4fff:fe40:9c64]) by smtp.gmail.com with ESMTPSA id d65sm10664657qkc.53.2017.05.02.12.23.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 12:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=15oJ74dROGbtYITcbTklKFua68lpYWHV+lkXp0paUdE=; b=KgJ4PGMK94I8VPu51f2wZfLEOM/JKZCigjlNIMQLRiqWqRRGeUqW8xhgg6in5xzyU8 9VAzvRKzaJ2O7AT6QTUcZjySnu5yNpBtmifzXmG3Qq5dXdMzCPuJBXn4g+ogKFTXGBoP a5E2hmZ6fNqfvaoam9E+xTlWnoyOWI1q7oap8YwhrggudEHk/Gc2w6EWNBu6waFBIvEd vrruZHOOqhvCfaiutsgqJ48ztEVh0njSfCbOX6Ef8L8ufzN19HfxRZiM21r4jxFKTUgK PL+2nXsCdwRq5ha1KyNIVw63/DQ+sQAyXzN9IZwRHlLcaUl8iKAZqH1obMmCZGVpYjGt T8TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=15oJ74dROGbtYITcbTklKFua68lpYWHV+lkXp0paUdE=; b=CxGC2/nEQBRLEJzwoqpe5ZKHOEHQNxa8UIRq8G5glZ+94pkeR9vY4PhwirWtZueSd8 XB1CcxsoGzdMv0dTH9QJLCPH7bdfLvJX7MIGJA3qyaxmVatqs5P4hDaWz0Ysni7spepq 9oxqTIPOqdxy2sipZwpV1J4Zu6fExcY16WInEFtq0vJQQWSnmZjTfTFkkSyZ3QfSKxN1 YyZ8ukycREY5Gfm1IfnvlU6uVriKmdEHtorBIKVdGudo9LSrcfkOS4AiSw9Fysmo/9p/ TnyMoXSL3GrKDGG2358aJkG2vW/5nXvlAR61Vwt8AqDOVhGnVVM0/LxMrEn81F8yhlKA w8Ng== X-Gm-Message-State: AN3rC/6V2G0zr8zqhPzolUoM+qZN96kaXOi4GDI5Rj6tWkGADU3H6vHB U0g2IM6axZHbzfUVqKk= X-Received: by 10.200.41.70 with SMTP id z6mr28325072qtz.112.1493753014628; Tue, 02 May 2017 12:23:34 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 2 May 2017 12:22:57 -0700 Message-Id: <20170502192300.2124-23-rth@twiddle.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170502192300.2124-1-rth@twiddle.net> References: <20170502192300.2124-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH v6 22/25] target/aarch64: optimize indirect branches 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: cota@braap.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Emilio G. Cota" Measurements: [Baseline performance is that before applying this and the previous commit] - NBench, aarch64-softmmu. Host: Intel i= 7-4790K @ 4.00GHz 1.7x +-+------------------------------------------------------------------= --------------------------------------------+-+ | = | | cross = | 1.6x +cross+jr.................................................####.......= ............................................+-+ | #++# = | | # # = | 1.5x +-+...................................................*****..#.......= ............................................+-+ | *+++* # = | | * * # = | 1.4x +-+...................................................*...*..#.......= ............................................+-+ | * * # = | | ##### * * # = | 1.3x +-+................................****+++#...........*...*..#.......= ............................................+-+ | *++* # * * # = | | * * # * * # = | 1.2x +-+................................*..*...#...........*...*..#.......= ............................................+-+ | * * # * * # = | | #### * * # * * # = | 1.1x +-+.......................+++#..#..*..*...#...........*...*..#.......= ............................................+-+ | **** # * * # * * # = ****#### | | * * # * * # * * # ****#= ## +++#### ****### * * # | 1x +-++-++++++-++++****###++-*++*++#++*++*+-+#++****+++++*+++*++#++*++*-= +#++*****++#++****###-++*++*-+#++*+-*+++#+-++-+ | *****### * * # * * # * * # *++*### * * # * * = # * * # * *++# * * # * * # | | * *++# * * # * * # * * # * * # * * # * * = # * * # * * # * * # * * # | 0.9x +-+---*****###--****###---****###--****####--****###--*****###--****#= ##--*****###--****###---****###--****####---+-+ ASSIGNMENT BITFIELD FOURFP EMULATION HUFFMAN LU DECOMPOSITIONNE= URAL NUMERIC SORSTRING SORT hmean png: http://imgur.com/qO9ubtk NB. cross here represents the previous commit. - SPECint06 (test set), aarch64-linux-user. Host= : Intel i7-4790K @ 4.00GHz 1.5x +-+------------------------------------------------------------------= --------------------------------------------+-+ | = ***** | | = *+++* jr | | = * * | 1.4x +-+..................................................................= ...*...*.....................+++............+-+ | = * * | | | ***** = * * | | | * * = * * ***** | 1.3x +-+....................................*...*.........................= ...*...*....................*.|.*...........+-+ | +++ * * = * * * | * | | ***** * * = * * *+++* | | * * * * = * * * * | 1.2x +-+....................*...*...........*...*.........................= ...*...*...........*****....*...*...........+-+ | ***** * * * * = * * * * * * +++ | | * * * * * * = * * * * * * ***** | | * * * * ***** * * = * * * * * * * * | 1.1x +-+...*...*............*...*...*...*...*...*.........................= ...*...*....+++....*...*....*...*...*...*...+-+ | * * * * * * * * = * * ***** * * * * * * | | * * * * * * * * ***** = * * * * * * * * * * | | * * ***** * * * * * * * * ****** = * * * * * * * * * * | 1x +-++-+*+++*-++*+++*++++*+-+*+++*-++*+++*-++*+++*+++*++-*++++*-++*****= +++*++-*+++*++-*+++*+-+*++++*+++*++-*+++*+-++-+ | * * * * * * * * * * * * * * *+++*= * * * * * * * * * * | | * * * * * * * * * * * * * * * *= * * * * * * * * * * | | * * * * * * * * * * * * * * * *= * * * * * * * * * * | 0.9x +-+---*****---*****----*****---*****---*****---*****---******---*****= ---*****---*****---*****----*****---*****---+-+ astar bzip2 gcc gobmk h264ref hmmlibquantum mcf om= netpperlbench sjengxalancbmk hmean png: http://imgur.com/3Dp4vvq - SPECint06 (train set), aarch64-linux-user. Host= : Intel i7-4790K @ 4.00GHz 1.7x +-+------------------------------------------------------------------= --------------------------------------------+-+ | = | | = jr | 1.6x +-+..................................................................= .............................+++............+-+ | = ***** | | = *+++* | | = * * | 1.5x +-+..................................................................= ............................*...*...........+-+ | = +++ * * | | = ***** * * | 1.4x +-+..................................................................= ...*+++*....................*...*...........+-+ | = * * * * | | ***** = * * * * | | * * = * * ***** * * | 1.3x +-+....................................*...*.........................= ...*...*...*...*............*...*...........+-+ | +++ * * = * * * * * * | | ***** * * = * * * * ***** * * | 1.2x +-+....................*...*...........*...*.........................= ...*...*...*...*...*+++*....*...*...*****...+-+ | * * * * = * * * * * * * * *+++* | | ***** * * ***** * * = * * * * * * * * * * | | * * * * *+++* * * = * * * * * * * * * * | 1.1x +-+...*...*............*...*...*...*...*...*.........................= ...*...*...*...*...*...*....*...*...*...*...+-+ | * * ***** * * * * * * *****= * * * * * * * * * * | | * * * * * * * * * * +++ ****** *+++*= * * * * * * * * * * | 1x +-+---*****---*****----*****---*****---*****---*****---******---*****= ---*****---*****---*****----*****---*****---+-+ astar bzip2 gcc gobmk h264ref hmmlibquantum mcf om= netpperlbench sjengxalancbmk hmean png: http://imgur.com/vRrdc9j Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 1e28094..e0e8b80 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -11361,8 +11361,7 @@ void gen_intermediate_code_a64(ARMCPU *cpu, Transla= tionBlock *tb) gen_a64_set_pc_im(dc->pc); /* fall through */ case DISAS_JUMP: - /* indicate that the hash table must be used to find the next = TB */ - tcg_gen_exit_tb(0); + tcg_gen_lookup_and_goto_ptr(cpu_pc); break; case DISAS_TB_JUMP: case DISAS_EXC: --=20 2.9.3