From patchwork Wed Sep 6 16:05:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 111800 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp1114146qge; Wed, 6 Sep 2017 09:07:00 -0700 (PDT) X-Received: by 10.159.54.241 with SMTP id p104mr1988314uap.143.1504714020475; Wed, 06 Sep 2017 09:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504714020; cv=none; d=google.com; s=arc-20160816; b=kGkqaeWtW5qlfx0W31axjL2WJBWfoOnZdX9txMC4g3aWZRfIkOzWAFE3JEnAR6wfnF wrunvy9tkKUuyWVlBEySZ82o70OSlbtyFnqhNTm1wUGFM0Lhkd35GdU3rrntTkxRXtcy 3JSvurpKXo4ONQw3BK580TqMKGAKt6RuJ/KMdh1jYn2hqYd7IVCIi2nTzQsNni92V6SA aUhNY/0HgmCjvq9aK+8fUp9s9ha7fPc7V4SnRdE+sl5ENy0v0uO2J9b/WGorQuk4XYlg J4wX+vEivsYrCeGNvQSjJV3pduK5AdEUktCK0rhLeBGT272vRPLGC7zr8LrvLg9nLJlO wEsg== 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=HKKyamN9Bu9JcJ0+ZFhCU38KB8iJ5vvHYpfN1iwhblM=; b=JkpV3i3lQRgk61HPCkSIBsWAO/TqBEIWJTo1Mskg3wHsVSuQOl+5OkWlW/mGtzzUI0 OvVg+9PBvmWbHrTxkexFsGMiGA//84D4nxsYud/ku2BgX6pbk6lNWJK+KHtSPQ04j86I RkoGr6ORoxBIEpWae/clIVdYXDm1dxRimc71fxAK1Q3Tz66BL0+anehj/RUevutQtFat VYuXsnm6cp0BYfbrpswI15joKSBa3QVntFJX1D+whHZatC/ba0oED7Q66IDwUxw/19xS xuiQ8A7LaYQo74n7W1nA4QXEXXIVHdoSOpBFkfcfyoPnq9WQ0EsWWlS/UxY3WZ61+vPs Bqng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kHE0McS+; 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 30si99313uae.77.2017.09.06.09.06.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 06 Sep 2017 09:07:00 -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=kHE0McS+; 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]:36959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpcqv-0008Qt-Rg for patch@linaro.org; Wed, 06 Sep 2017 12:06:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpcqS-0008NQ-0b for qemu-devel@nongnu.org; Wed, 06 Sep 2017 12:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpcqH-0001UL-T3 for qemu-devel@nongnu.org; Wed, 06 Sep 2017 12:06:27 -0400 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:36478) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpcqH-0001Mx-MZ for qemu-devel@nongnu.org; Wed, 06 Sep 2017 12:06:17 -0400 Received: by mail-pf0-x235.google.com with SMTP id e199so13451604pfh.3 for ; Wed, 06 Sep 2017 09:06:16 -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=HKKyamN9Bu9JcJ0+ZFhCU38KB8iJ5vvHYpfN1iwhblM=; b=kHE0McS+dcOsDQzosGkWy8JH2RU856rgxq8CbTOJLDVaJoOHPcWokvizdqSsxv5Fqn NELJEjjrZWbjr3Efp43IZGuVDwQrNFQ4vXNQtT4Usr+zKaswePiCt8og0g3ig2Cdxr41 AzJWfMWTLOGuSsxcLFge55+QaySBE9PP+oPvA= 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=HKKyamN9Bu9JcJ0+ZFhCU38KB8iJ5vvHYpfN1iwhblM=; b=nrQvZVj0KGR8re1WLK9kD4VycUXtSEW4agrTkVHYgXMGdImlwwRFgFwyU8suktkdzg on68mWZI8LcRyrXY1jLjYkpP3ZrloV3kOT5sGFOdLkwzpFrfx00TA7FbuslZqvNzh+p/ FV0ek4cHrewrYbBVUr+wtO1vwFOrAg0mZhYBfEzso+ajQLYtLzeZczI29mmpVCSIj05K /Gwo6V9uDMg2ixxyEcPh+GmpjgXSsCbvgJ4H/saPo08QmxEfj8alAhrFN2IsiuEPk0D9 NLQksVIgFjnfWExsGsI7y3/4b2nWjdx5uvSTU2ijVnpuipmiAcoxRNyL86GLXlBRcQLt G72Q== X-Gm-Message-State: AHPjjUiqbEViwKqUesaChf2sogK0+C8tPR0uPfObH1F/9HrJflLqHb6g C38m9OxBUhk4t+SEQb9Meg== X-Google-Smtp-Source: ADKCNb5I8H7m/6CR29jnqA5Py1quZN+28EGOZzIyr6Z1iL/zZ++B8DWHV26cFj4kjojzM6nlDlg1lQ== X-Received: by 10.99.125.86 with SMTP id m22mr8500768pgn.442.1504713974384; Wed, 06 Sep 2017 09:06:14 -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 t65sm262863pfk.59.2017.09.06.09.06.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Sep 2017 09:06:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 6 Sep 2017 09:05:40 -0700 Message-Id: <20170906160612.22769-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 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::235 Subject: [Qemu-devel] [PULL 00/32] tcg generic translate loop 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" This is v15 of the patch set, reviewed mostly by Emilio and Alex. I have converions for additional targets, but this is large enough. r~ The following changes since commit b07d1c2f5607489d4d4a6a65ce36a3e896ac065e: Revert "kvm: use DIV_ROUND_UP" (2017-09-05 18:55:40 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tgt-20170906 for you to fetch changes up to d0264d86b026e9d948de577b05ff86d708658576: target/arm: Perform per-insn cross-page check only for Thumb (2017-09-06 08:06:48 -0700) ---------------------------------------------------------------- tcg generic translate loop v15 ---------------------------------------------------------------- LluĂ­s Vilanova (24): target: [tcg] Use a generic enum for DISAS_ values tcg: Add generic translation framework target/i386: [tcg] Port to DisasContextBase target/i386: [tcg] Port to init_disas_context target/i386: [tcg] Port to insn_start target/i386: [tcg] Port to breakpoint_check target/i386: [tcg] Port to translate_insn target/i386: [tcg] Port to tb_stop target/i386: [tcg] Port to disas_log target/i386: [tcg] Port to generic translation framework target/arm: [tcg] Port to DisasContextBase target/arm: [tcg] Port to init_disas_context target/arm: [tcg,a64] Port to init_disas_context target/arm: [tcg] Port to tb_start target/arm: [tcg] Port to insn_start target/arm: [tcg,a64] Port to insn_start target/arm: [tcg,a64] Port to breakpoint_check target/arm: [tcg] Port to translate_insn target/arm: [tcg,a64] Port to translate_insn target/arm: [tcg] Port to tb_stop target/arm: [tcg,a64] Port to tb_stop target/arm: [tcg] Port to disas_log target/arm: [tcg,a64] Port to disas_log target/arm: [tcg] Port to generic translation framework Richard Henderson (8): tcg: Add generic DISAS_NORETURN target/i386: Use generic DISAS_* enumerators target/arm: Use DISAS_NORETURN target/arm: Delay check for magic kernel page target/arm: [a64] Move page and ss checks to init_disas_context target/arm: Move ss check to init_disas_context target/arm: Split out thumb_tr_translate_insn target/arm: Perform per-insn cross-page check only for Thumb include/exec/exec-all.h | 29 --- include/exec/translator.h | 144 +++++++++++++ target/arm/translate.h | 39 ++-- accel/tcg/translator.c | 138 ++++++++++++ target/arm/translate-a64.c | 300 +++++++++++++------------- target/arm/translate.c | 478 +++++++++++++++++++++++------------------- target/cris/translate.c | 7 +- target/i386/translate.c | 298 +++++++++++++------------- target/lm32/translate.c | 6 + target/m68k/translate.c | 7 +- target/microblaze/translate.c | 6 + target/nios2/translate.c | 6 + target/openrisc/translate.c | 6 + target/s390x/translate.c | 3 +- target/unicore32/translate.c | 7 +- target/xtensa/translate.c | 4 + accel/tcg/Makefile.objs | 1 + 17 files changed, 909 insertions(+), 570 deletions(-) create mode 100644 include/exec/translator.h create mode 100644 accel/tcg/translator.c