From patchwork Thu Sep 7 22:40:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 111972 Delivered-To: patch@linaro.org Received: by 10.140.94.239 with SMTP id g102csp721491qge; Thu, 7 Sep 2017 15:43:10 -0700 (PDT) X-Received: by 10.55.146.195 with SMTP id u186mr1260133qkd.14.1504824190482; Thu, 07 Sep 2017 15:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504824190; cv=none; d=google.com; s=arc-20160816; b=jhYp+xWihIqyv/Zefr67KjjnfMcMhZnOnhqfjKfp2ktEqK7gWKGRCDZXiCWLSg2Rsb ROBseh2gZ4pFN/YjFsqt9fGECXPC320GiwykpBF6GY3qZlS6rE5KfZJllQztYQgBJRas IR926N0jRDkf6lib7TRzQlSFGxGeFsp3NUYRtet40quZfgU2TDCIDeOboLcrtjoyjujT 47pxUKTxG0lE/YAZ1L4QoLFiwGYf80T/JEvhYSIjcBqrB0pqxwFG9LzvfCwpm473XHQl mkKP+quSXwj/MnBCbHfwC6JRAWDUnB5LyjAJPVFZ7ifUxSS1AWYX3Ifjws5d/sjgQHzT lnVA== 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:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=7xeIDDtpHEkPTJshFhxYle//VnVhBRvoCU84W+k2ICM=; b=pzvTHppS7QX6eNjQYhqRSYTovs8kGUAjAQB2lf/+ujasyeQ3P9JHM2/NhT4AZotEiH ZYnndpa1Ew+1h19do5a8uPDGjqFtZQwFIjRDJW4yuoeuIYjfdjydDL5d6A9cxUj03+gr Db2CCPmPfLxqVv1QLvV1clW+4p1R39ZcyPPIExXckwNHO/Xm8XfWpbBTK1s70y9wSM25 EcRG9tv9Dob9JzznTFZKtJmUFC6V8U0WmWv4cQNMbYomUBtUumcUg+L8J2W3fzqSwXQr bdv83lyUW6Wh+69zt/w/SfYcdZ2CL3D9NyMPwNui+3duuSOIm66O+Ft5z5ftEX+89u3B LYRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PF55kMli; 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 d188si445953qkb.296.2017.09.07.15.43.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Sep 2017 15:43:10 -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=PF55kMli; 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]:42519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dq5Vs-0004KP-Cn for patch@linaro.org; Thu, 07 Sep 2017 18:43:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dq5To-0002x4-B3 for qemu-devel@nongnu.org; Thu, 07 Sep 2017 18:41:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dq5Tj-0007xF-HG for qemu-devel@nongnu.org; Thu, 07 Sep 2017 18:41:00 -0400 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:34447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dq5Tj-0007wn-AU for qemu-devel@nongnu.org; Thu, 07 Sep 2017 18:40:55 -0400 Received: by mail-pg0-x22b.google.com with SMTP id q68so1822983pgq.1 for ; Thu, 07 Sep 2017 15:40:55 -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; bh=7xeIDDtpHEkPTJshFhxYle//VnVhBRvoCU84W+k2ICM=; b=PF55kMli9tnytWwCvFXgaIu+5uKjzXlOzTBFF/7tug59P6Kc+wcFxMZpyowytoDxqk H6ASw9c0rHR67uJhpsEHvDjkRQzZLaYW7cCKYMgIo27rx1V0Qom72oxg0oPqvqIcbMLO tFevphmPzy/FJBPl/sTcEhPM7Dx1YWh+AHJUQ= 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; bh=7xeIDDtpHEkPTJshFhxYle//VnVhBRvoCU84W+k2ICM=; b=QTgNrgmVdI4ATlSDYn5JFmx/xWVEbOO0ve+JsZFV+eqGy7AbETTjo0zgkoItwPEt9X 2DfmA1b9gQmo+bTdiIXCpe5tSJwPh3HeC5zBhZACAvSkDkKqDnfP7jhlPhH/izsnNKwV 4Y3JOJR+1fpqYhgaIEV7icGdJol1GkARF3DFoHBeDBGovtrFA5pcCsXDrXT1ooX8t7HK uuW9unCzDyTSvuPNRo8e3HLY8vh6M8Wp51LdvR2RRN+KtzHznJ19RLk+sRPpu3MHO5cy 2r/jgkj8jcnWJArO/OA/R/HpjRWCRdajJbmFSQBwTQFHk0FqT4d/233qnJI250vSG7mG ocwg== X-Gm-Message-State: AHPjjUhy5aWQ8uDWdJ8s3B/xs4R7pYhLLVGS61oEhyIFEqIH9JhX2UNH Hw0Vrz0Z9JnsA+1ZqNyckg== X-Google-Smtp-Source: ADKCNb6JsfiUAp//RPIT4o9vv4EcGj3wCga/VzC4Wv5Bjxa8237OasfUGOhoCMwOuKk49YKE3dNuDw== X-Received: by 10.98.35.210 with SMTP id q79mr965848pfj.340.1504824053910; Thu, 07 Sep 2017 15:40:53 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id h19sm770678pfh.142.2017.09.07.15.40.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2017 15:40:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 7 Sep 2017 15:40:28 -0700 Message-Id: <20170907224051.21518-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22b Subject: [Qemu-devel] [PULL 00/23] tcg constant pools and USE_DIRECT_JUMP cleanup 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Lots of cleanup for aarch32 and s390x. Minor improvements for aarch64, ppc, sparc, x86_64. But we'll need this more when we start generating host vector insns. r~ The following changes since commit cda4a338c4243fa3bff4498b935340ac7121cc76: tcg/tci: Add TCG_TARGET_DEFAULT_MO (2017-09-07 18:57:34 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20170907 for you to fetch changes up to 53c89efd02cef626040165cc8f06b5cf2c15355d: tcg/ppc: Use constant pool for movi (2017-09-07 11:57:35 -0700) ---------------------------------------------------------------- TCG constant pools ---------------------------------------------------------------- Richard Henderson (23): tcg: Move USE_DIRECT_JUMP discriminator to tcg/cpu/tcg-target.h tcg: Rearrange ldst label tracking tcg: Infrastructure for managing constant pools tcg/i386: Store out-of-range call targets in constant pool tcg/s390: Introduce TCG_REG_TB tcg/s390: Fix sign of patch_reloc addend tcg/s390: Use constant pool for movi tcg/s390: Use constant pool for andi tcg/s390: Use constant pool for ori tcg/s390: Use constant pool for xori tcg/s390: Use constant pool for cmpi tcg/aarch64: Use constant pool for movi tcg/sparc: Introduce TCG_REG_TB tcg/sparc: Use constant pool for movi tcg/arm: Improve tlb load for armv7 tcg/arm: Tighten tlb indexing offset test tcg/arm: Code rearrangement tcg/arm: Extract INSN_NOP tcg/arm: Use constant pool for movi tcg/arm: Use constant pool for call tcg/ppc: Change TCG_REG_RA to TCG_REG_TB tcg/ppc: Look for shifted constants tcg/ppc: Use constant pool for movi include/elf.h | 3 +- include/exec/exec-all.h | 95 +---- tcg/aarch64/tcg-target.h | 10 +- tcg/arm/tcg-target.h | 11 +- tcg/i386/tcg-target.h | 14 + tcg/mips/tcg-target.h | 9 +- tcg/ppc/tcg-target.h | 7 + tcg/s390/tcg-target.h | 15 + tcg/sparc/tcg-target.h | 5 + tcg/tcg-be-null.h | 44 -- tcg/tcg.h | 14 +- tcg/tci/tcg-target.h | 13 + accel/tcg/cpu-exec.c | 35 ++ accel/tcg/translate-all.c | 36 +- tcg/aarch64/tcg-target.inc.c | 78 ++-- tcg/arm/tcg-target.inc.c | 780 +++++++++++++++++++--------------- tcg/i386/tcg-target.inc.c | 20 +- tcg/mips/tcg-target.inc.c | 7 +- tcg/ppc/tcg-target.inc.c | 345 ++++++++------- tcg/s390/tcg-target.inc.c | 527 +++++++++++++---------- tcg/sparc/tcg-target.inc.c | 240 ++++++++--- tcg/{tcg-be-ldst.h => tcg-ldst.inc.c} | 27 +- tcg/tcg-pool.inc.c | 85 ++++ tcg/tcg.c | 26 +- tcg/tci/tcg-target.inc.c | 2 - 25 files changed, 1444 insertions(+), 1004 deletions(-) delete mode 100644 tcg/tcg-be-null.h rename tcg/{tcg-be-ldst.h => tcg-ldst.inc.c} (85%) create mode 100644 tcg/tcg-pool.inc.c