From patchwork Tue Oct 10 00:55:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 115308 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3165407qgn; Mon, 9 Oct 2017 17:56:32 -0700 (PDT) X-Received: by 10.200.34.28 with SMTP id o28mr17592159qto.184.1507596992289; Mon, 09 Oct 2017 17:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507596992; cv=none; d=google.com; s=arc-20160816; b=uQZSmK8hOD8o1GAvibUDrhTaUpjtP4vcgmE7jF2adDz0/OAbsRODbx5qI+qwWmCXo4 YhaZAGsuDFg9WZhWfzn9BrQUUIXTtl3VoZ4RoNQoZ/i3HLQ96t/UZsWf1xIn1B/vDScH 9YABTijDB8p06O8uEWBj/tUt6FQXS4sCXLyYaMfexyXglCwj62BkdpRqxVaY26P4UEtr js6ZCm6aB3022d+NsQLHM56x+bvp97sON9CzbHkJolZ0nKZJcdaa1/d/Bu1RbGk1DhCJ Q5rE+tgcsQmBV0zY8rD2ojkfvC0r9OtYNQnz5dmUEco9IY8sveTvNS+E0y4OKuI24hto k/kA== 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 :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=ouBV+xuk7ZC7TBb8NWBJoOzBxqZG+7xMaE/1O5EK5MA=; b=UluN2Eygxegveo56p0uf2EBQIto8RVY4XsufmWxMqYfTEIGe0RzOPuV9n0IDSwpEsQ Ipxkxl+MmVyih2pJzUtkEfH//sg+Bn53jzfLNUXdSWhYMRTfNgY539R7j5L/MUxKQJsI 0p8wX3+CBljIMfsqKwlYhg7AQxuY5Baux5GvEdnU80XNS27GFevauNT5f+DL7IlUTpWh lsUBApkZO9S+C6Lg8sNh0m4SmEoG/N/HiBt26uumRPesfp57904Rdk4Sw4FDY87l0GxW kI1z5spZIWeOUb3OxazB+D1GgK2fsRnGm0/tTckC5JvIhDgdo+jfxmt25Oibgk+Y2Tf0 ZA8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bIkSAXbH; 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 v16si2694901qkb.259.2017.10.09.17.56.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 09 Oct 2017 17:56:32 -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=bIkSAXbH; 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]:60485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1iqU-0002AY-77 for patch@linaro.org; Mon, 09 Oct 2017 20:56:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1iq7-00029u-VB for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1iq4-0004F9-R7 for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:08 -0400 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:57219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1iq4-0004Ee-KS for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:04 -0400 Received: by mail-pf0-x22d.google.com with SMTP id b85so4312184pfj.13 for ; Mon, 09 Oct 2017 17:56:04 -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:mime-version :content-transfer-encoding; bh=ouBV+xuk7ZC7TBb8NWBJoOzBxqZG+7xMaE/1O5EK5MA=; b=bIkSAXbHGqy09/pSR5ZXKc4wC59nyTjjgP9YHvo9JOANnls0r6eRhvTvze43Z3IPVF aX6hkN2vNj/xoUMJfUA8RqFua6VEMAc+rSB5GLzTG/8XLJnhoLVgomvkVABKIpe41PhB 40jSkbpuEsiyKmKxsltsQZaBhbJ+8wZBeBBIM= 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:mime-version :content-transfer-encoding; bh=ouBV+xuk7ZC7TBb8NWBJoOzBxqZG+7xMaE/1O5EK5MA=; b=Od+2VvI+oFfJUY4F04d6HVGiLtQeQVaSJkNEjaIWN9QXcpDqfERI5l5ckShFd0Zo+/ pDA3Z2xjtmmeqMMhepHYq65O/82MeS1S5140FfIiTq7NGjEH7irvfvq7uWHLEPDu8tDT kLM613PMiDALD7YM6D/Itu/MfGjZrckNS0+qCR4/SpPzlcCrn8GJU+L2TcZvdbfe8yXu 7bFanv5ckqqWDWd/tjrGxZbhnWJ423L9Hv4Ie/iXZorFnaKFZVlE/ULr7LKT4oNe0tCE XouX0evHssvwOqOR/ptbt59x+3Mx5sEuCeB5cA0iYI+nOfk8PxKoCgVOk4jZzaY/z2fN 0d9w== X-Gm-Message-State: AMCzsaWmvRGmREv8F5jXYQ0qjEvDYxw/CCkMcoVbCfmnFxdcd/tnzT9g Py4ko1oIdQK80fo/rY/5EZz5JlVne6g= X-Google-Smtp-Source: AOwi7QAGw+zI7JSXs5F87yPcJMi8MxcdnC8cUmKsEkh+g+PZZEc1K4XFogN9h2+gZK2Mghe6csZzgA== X-Received: by 10.98.144.142 with SMTP id q14mr11500815pfk.303.1507596963042; Mon, 09 Oct 2017 17:56:03 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id n19sm17121368pfj.52.2017.10.09.17.56.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 17:56:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 9 Oct 2017 17:55:37 -0700 Message-Id: <20171010005600.28735-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22d Subject: [Qemu-devel] [PULL 00/23] Queued TCG patches 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" One trivial cleanup from Jiang. Cherry-picking half of Emilio's patch set that has been reviewed. r~ The following changes since commit 530049bc1dcc24c1178a29d99ca08b6dd08413e0: Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2017-10-06 17:43:02 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20171009 for you to fetch changes up to 5de8a6a471ba6b86c6b4fb681e5a3c594ed5a684: tcg/mips: delete commented out extern keyword. (2017-10-09 17:07:32 -0700) ---------------------------------------------------------------- Queued tcg patches ---------------------------------------------------------------- Emilio G. Cota (22): cputlb: bring back tlb_flush_count under !TLB_DEBUG tcg: fix corruption of code_time profiling counter upon tb_flush exec-all: fix typos in TranslationBlock's documentation translate-all: make have_tb_lock static cpu-exec: rename have_tb_lock to acquired_tb_lock in tb_find tcg/i386: constify tcg_target_callee_save_regs tcg/mips: constify tcg_target_callee_save_regs tcg: remove addr argument from lookup_tb_ptr tcg: consolidate TB lookups in tb_lookup__cpu_state exec-all: bring tb->invalid into tb->cflags translate-all: define and use DEBUG_TB_FLUSH_GATE exec-all: introduce TB_PAGE_ADDR_FMT translate-all: define and use DEBUG_TB_INVALIDATE_GATE translate-all: define and use DEBUG_TB_CHECK_GATE exec-all: extract tb->tc_* into a separate struct tc_tb tci: move tci_regs to tcg_qemu_tb_exec's stack tcg: take .helpers out of TCGContext tcg: allocate optimizer temps with tcg_malloc util: move qemu_real_host_page_size/mask to osdep.h osdep: introduce qemu_mprotect_rwx/none translate-all: use qemu_protect_rwx/none helpers tcg: define TCG_HIGHWATER Jiang Biao (1): tcg/mips: delete commented out extern keyword. accel/tcg/tcg-runtime.h | 2 +- include/exec/cpu-all.h | 2 - include/exec/cpu-defs.h | 1 + include/exec/cputlb.h | 3 +- include/exec/exec-all.h | 19 +- include/exec/tb-lookup.h | 49 ++++ include/qemu/osdep.h | 8 + tcg/tcg-op.h | 4 +- tcg/tcg.h | 2 - accel/tcg/cpu-exec.c | 73 +++--- accel/tcg/cputlb.c | 17 +- accel/tcg/tcg-runtime.c | 34 +-- accel/tcg/translate-all.c | 157 ++++++------- exec.c | 4 - target/alpha/translate.c | 2 +- target/arm/translate-a64.c | 4 +- target/arm/translate.c | 5 +- target/hppa/translate.c | 6 +- target/i386/translate.c | 17 +- target/mips/translate.c | 4 +- target/s390x/translate.c | 2 +- target/sh4/translate.c | 4 +- tcg/i386/tcg-target.inc.c | 2 +- tcg/mips/tcg-target.inc.c | 4 +- tcg/optimize.c | 306 +++++++++++++------------ tcg/tcg-op.c | 4 +- tcg/tcg.c | 18 +- tcg/tci.c | 552 +++++++++++++++++++++++---------------------- util/osdep.c | 41 ++++ util/pagesize.c | 18 ++ util/Makefile.objs | 1 + 31 files changed, 738 insertions(+), 627 deletions(-) create mode 100644 include/exec/tb-lookup.h create mode 100644 util/pagesize.c