From nobody Wed Nov 5 18:27:47 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 1496681995786141.53308896658723; Mon, 5 Jun 2017 09:59:55 -0700 (PDT) Received: from localhost ([::1]:34385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHvM9-0001tA-3t for importer@patchew.org; Mon, 05 Jun 2017 12:59:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHvFc-0004ml-6l for qemu-devel@nongnu.org; Mon, 05 Jun 2017 12:53:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHvFa-00041S-W5 for qemu-devel@nongnu.org; Mon, 05 Jun 2017 12:53:08 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:35044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHvFa-00041E-Pv for qemu-devel@nongnu.org; Mon, 05 Jun 2017 12:53:06 -0400 Received: by mail-qt0-x242.google.com with SMTP id x58so9854775qtc.2 for ; Mon, 05 Jun 2017 09:53:06 -0700 (PDT) Received: from bigtime.twiddle.net.com ([2602:47:d954:1500:5e51:4fff:fe40:9c64]) by smtp.gmail.com with ESMTPSA id c6sm1637044qtb.56.2017.06.05.09.53.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jun 2017 09:53:05 -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=fMi9tkoPXNmvWDzBon3IG62egOFkYYEnGQPX80BJ/P4=; b=MynL9WhmHfvt84QQevvZxdx/WIgMRjLz0pAkOcQR0+rNH25qBhnwbwLKHvZE2YVVAl rwwZZgO7gy1LSTiDFI6C5t/VtPVv/fcS0kM+YaGlxkLki749n7eiUWO6nw2Ew4ENY7u4 LBT5m4DYVHCpq+LSeLF9SmlKQCG4c/MbuYLapd7LlimzdhE5dXmkv4xwW7TWPF/7GL88 Fr5W10UWHwn3I5UoW9SJiVwXHfheQLTUwMbAQ1JNCE+Y0dZ7HGTU6LJVvlEmbz+iiEjf d63t+Fi0elEVdw+r1oso2Vjc9iWf5Axl/8zAUYQMwiFjBwiXTg2QYIy62KOJXr67vZ5M TD7A== 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=fMi9tkoPXNmvWDzBon3IG62egOFkYYEnGQPX80BJ/P4=; b=J0Gccxga9oAKxW7hfJCSCzFCSB6IOeC7486bO3RnmLiU/5Aa2kWgN6wE2nouskfqUY rZtage1J3sRkzARjicjAZjSLMBDfLx43wOScJ7NJPTSDkvMQ4T3hr7DyUlwnY/YbvYio VAdit9W70oDXyvJ9IxqrRCCd9ixZg/BTrWvWqj1EZnWg0kn8gHZq8YRakokfcGvyKiAw tUzF5lGLhstBXb+VfylVyiT+/0EpqYMRcVTvOGPH0mHLTUq8iKyZdIWlGehAReRn+DlM U8em0iVxWyQ8e47GSpSPBUJlhe8DnZOUvLY6KK38Hdu71+jQEaTveSbiAkcLFe7A2IoQ wJLg== X-Gm-Message-State: AODbwcDuBPW0oukMQI61rx/Jfnlxtx6VA9ofuj8e7fnOrcEMQzlDO4K4 GrpQ8FvbxlhBd/Q5eLY= X-Received: by 10.55.116.66 with SMTP id p63mr23256695qkc.250.1496681585880; Mon, 05 Jun 2017 09:53:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 5 Jun 2017 09:52:29 -0700 Message-Id: <20170605165233.4135-23-rth@twiddle.net> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170605165233.4135-1-rth@twiddle.net> References: <20170605165233.4135-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::242 Subject: [Qemu-devel] [PULL 22/26] 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: peter.maydell@linaro.org, "Emilio G. Cota" 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 ab61d96..860e279 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -11367,8 +11367,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.4