From patchwork Tue Oct 10 19:29:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 115448 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4114408qgn; Tue, 10 Oct 2017 12:30:37 -0700 (PDT) X-Received: by 10.55.187.199 with SMTP id l190mr10260752qkf.149.1507663837696; Tue, 10 Oct 2017 12:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507663837; cv=none; d=google.com; s=arc-20160816; b=pjrPx8uJP/EldumEi5bwU9CQnzDZIBL6RjvdVF1JSaTL5pdq+v5xr5jESKqV7ulvcG 4nHPAgbACzHNPwBK5HF0LMDrrU5oD869gbsxaaO8JgcESPbsHPrHylt8u28IP56xWchA dsmpeC3iiFGRieYw7jkIK9MNDxYzzSGzHZg34b344G6Gt6QGMsmFSO/7RMyTNdwRX5z2 9ywnrnqZVgJPfD9EFVpyRqk5k16KRq/gtep7w5Cve/Bskh0+6t1mr8lB+/w1fsqoXfAD r840ye47eT3a5VPe3/S7/R6ukgRor+6LhirtezTO1MsYRl3Uz+ZKOwIbjDR3iCrIfXum fK7g== 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=L/ymf/NeFVefHzhogbKWM7h09AMjx61vnJqlV+cnC7A=; b=ynDJULZx7DSDnqMgGKimz/p5/DcWNDaA9q35N3ciHd86l8nzflps2rd3JKN+UGyzM9 oUtNm5MgileWgMD3DkOm016NNXnRuQjHPyybgH1+ESZtYiTVX9cIhUJcHbrBOXUcn6jg PdqcsvvAjyEDugJ2TRtxaZ1j5Lw/zoLaVX5Xpna736K9Kh1WxaNqwvleR6ZnDrjSAbqd ZWIbhc+s/l7T8AHWkmeM0WPEmKa542XQFHu6HCkPwgQ3RacnkRGshZpD0d1Ca5KPaIY6 2G8msqj34GQpNFAAVMc3bGCSaKTfUB5ykFWUHdz0cSWVeDWVWOVHdQARxvBBV+DICHgd uJHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=G5k9aQ5t; 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 n21si997908qtc.308.2017.10.10.12.30.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 10 Oct 2017 12:30:37 -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=G5k9aQ5t; 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]:36796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20Ec-0000Wn-UK for patch@linaro.org; Tue, 10 Oct 2017 15:30:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20EF-0000UW-TR for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e20EB-0004tg-Kb for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:11 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:54757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e20EB-0004tO-D5 for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:07 -0400 Received: by mail-pf0-x236.google.com with SMTP id m28so13339172pfi.11 for ; Tue, 10 Oct 2017 12:30:07 -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=L/ymf/NeFVefHzhogbKWM7h09AMjx61vnJqlV+cnC7A=; b=G5k9aQ5t0/0hlZMLrQFo1ZEDcuRlU7/kOAcTVvaOrjXsa5M/nozgCRJhhwEDZieW8I kFJPLDup5/OKpWkwAWNCCT4IJETo9CEuKyVzb9u3RRb0CB3jJG/0bCq5gUohBCJwpksx uoGovin4P1I5ayqSOmhEIAZU4JWuw8uupSuTo= 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=L/ymf/NeFVefHzhogbKWM7h09AMjx61vnJqlV+cnC7A=; b=WAaRXeJ4l91MpDhfPZeHvYpfCeaBnrQRS4Zp9ExL+5GRxzEfe7mc/aV733KyhEzUPz J1IJ+F9+cDDMT78j4kiE+oNPk6L13Cosn3lDG7Ceu0JL/fJPdfVpqVowfAQ8jG6AEC0f 6nj3HemNtscQaXqaVWkK0b9jjz0GR0VmRP0nzU0X1IQ//LLowOiBktShh6MSzgeZ6jGZ +r0v52KlmScQ22DWepJUbS3qC6AjVm85x08zw50JeautAiCb0jGk8C1dBs5zo+5CVdJg rXB64NvXnBGqF+OyabTsXoa9LFn5HGZ0GCQ8Bx3IdWe4e/pz2h5PSkeEYm+zTbAnP5pu KHvg== X-Gm-Message-State: AMCzsaWHO2TWF99Kj0hAq4KhaLt+xMDCnk/swSnBetzb3ALXTGUIwG6k oHrTcJ6YAxvdagm1oai2Zof99HpV3LU= X-Google-Smtp-Source: AOwi7QCLvlh++5lCRgI4sFe1rUapbwj9YbTP/b6pUeHJQyCw3gI9ULndLVI40xIlEV2wVPxWzuLIzw== X-Received: by 10.98.182.15 with SMTP id j15mr3607999pff.47.1507663806027; Tue, 10 Oct 2017 12:30:06 -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 r22sm19859788pfl.15.2017.10.10.12.30.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2017 12:30:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 10 Oct 2017 12:29:43 -0700 Message-Id: <20171010193003.28857-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::236 Subject: [Qemu-devel] [PULL v2 00/20] 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. Changes since v1: * Dropped 2 mprotect changes that Werrored on w32. * Dropped tcg optimize patch that broke arm32 host. r~ The following changes since commit 567d0a19c7998fa366598b83d5a6e5f0759d3ea9: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-and-machine-pull-request' into staging (2017-10-10 13:25:46 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20171010 for you to fetch changes up to 8df8d529ed958de4e23dcbf38bd34eff1a4716f2: tcg/mips: delete commented out extern keyword. (2017-10-10 09:45:01 -0700) ---------------------------------------------------------------- Queued TCG patches ---------------------------------------------------------------- Emilio G. Cota (19): 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 util: move qemu_real_host_page_size/mask to osdep.h 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 | 6 + 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 | 96 +++++--- 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/tcg-op.c | 4 +- tcg/tcg.c | 18 +- tcg/tci.c | 552 +++++++++++++++++++++++---------------------- util/pagesize.c | 18 ++ util/Makefile.objs | 1 + 29 files changed, 521 insertions(+), 434 deletions(-) create mode 100644 include/exec/tb-lookup.h create mode 100644 util/pagesize.c