From patchwork Tue Aug 6 00:05:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 170617 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4916276ile; Mon, 5 Aug 2019 17:05:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEUT+kk9PYqEHHt4ySkmwFhwRuonEJvIr3Tj3ILLJsmgvd5dstzjLbqIQE52ZwFlj7rHf6 X-Received: by 2002:a50:f70c:: with SMTP id g12mr950925edn.139.1565049946700; Mon, 05 Aug 2019 17:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565049946; cv=none; d=google.com; s=arc-20160816; b=iNRzA3kpxHkpt9qf1qFxb/VNBmrSl1/+81CtWRmZbvVmthk7YmEK1fv1NNLZulnNLK c6khr5CAfym6xPkKvOzFKdlCgnIJFnvIchJmJ4kavLayqA6pE8gOcdGwE1R5J7I7gB76 dc6bK20ALeJghSEgk0tttv5AlAOXyuobBNDZKLQlKd8dZrAUK4vegXde+w4nnUZ4+SPi y0XJssg6iNeVg5fI/oRUxEBiisSK1hnuI9uLOUeBEnH4A8J23fwt3/WOp3PxNr2ifTQ5 j1f/lbyeLNS8OoEn/TdyQJfohn33gOsTvFzcXuMkDTCexN/RsAmG9hQjB3j2dfU8oP1e 4DHw== 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; bh=R+6Mvp82E0p6yB/libxbibUQjbVuKcqpL4edZewcAUM=; b=eqyF7ilAx+24lKp20/XN7LMCUvel25hYXwHGaKh0tsaIbYBNb0bqLDwzwMmixUhPqy gFxWygid+HCsqaQpQTk8SlNq7IhUOMS0woapQfTv+jNeSb7G3usGziS9DSz04xluu1xu PSpKxSZFe8WI2gREEb0Pb1fSCnClaiZ6D6No7LipwT3PEfmWDKqYx+cs8/ar1n699eQh w0SxJ/5I31AN2wsRy6+tCcN8hozb7tL0fmyUwGPNo2wzwXPOEJ9PKHiTV9RKiNVkn746 9jCoGykdzaXwyXsV5hmwTyZKRhro1VeOXokTG5FeUm2xelTiovhS0bie3gsnSyELi5p6 hp5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="TC0/4oct"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id b42si31336261ede.365.2019.08.05.17.05.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Aug 2019 17:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="TC0/4oct"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:57572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1humz3-00042O-Mo for patch@linaro.org; Mon, 05 Aug 2019 20:05:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33608) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1humyW-0003vO-Vr for qemu-devel@nongnu.org; Mon, 05 Aug 2019 20:05:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1humyV-0008De-Q0 for qemu-devel@nongnu.org; Mon, 05 Aug 2019 20:05:12 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:37060) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1humyV-0008Cj-Ic for qemu-devel@nongnu.org; Mon, 05 Aug 2019 20:05:11 -0400 Received: by mail-pg1-x542.google.com with SMTP id d1so7730305pgp.4 for ; Mon, 05 Aug 2019 17:05:11 -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=R+6Mvp82E0p6yB/libxbibUQjbVuKcqpL4edZewcAUM=; b=TC0/4octsAFEwyWOWZmMJbyVxDCiiIZz70lFfhc1WCV07Ovs0pP11cEe3JrS1zXb6j vPIcOREW7ql4OIafmbgxzRU0q2BdMkBlRTbSAXUY19yIwDVpD8RpJet4hg+ZQWeRxN51 ZQ6fKszWHIlzqE20SZknMNC5EMJoAtSIszRvJ+j17VxPhAYsP6iR3fI7r4dht+xNt8fi Ibsbk4APXOPfYMHY9QEN6HeNzK29a88S3HQ5aAptO918BiG+d8F/go1z5UgkSe7x+UgL JbkdmofWVQRG7SDrFsRsapeSaZ0tWnzaYmX00IU0N7XgMrCGsWrHvdOirUiEhQYmJKNP Iqyg== 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=R+6Mvp82E0p6yB/libxbibUQjbVuKcqpL4edZewcAUM=; b=HYtsYZYe8x/QicHkQXwYEOkzls2u2TQB38QjVzNWy8kznhkVDflBspjsAY9cBc6J6z X2eRniHw0pa+yHA4h4VycM24SuoWAEFDNz/ojgN9IYY91ctKuA9MVSVOGWtpJIpZQLOZ ylC22gY1v7rGRBLhEZAtk/zHre/90/nr7JVccUFrBqcCc3i+IvEq6QIQizk2DI/OlAdn fygJuBZgkSnoAKJrH84YlukUct95xjvms4oTxZhNBo7Mxqpejsqhu6C42mXiedED4kbV gBLRmLr7LJ/y0vtTX5JvSiaCLAWqHa8bGAC8AmJp2XjFbxSjQUKS8SMRnS+iqDwWMBWs RVeQ== X-Gm-Message-State: APjAAAUTO8gzCu/gk+MroyeCU4BFZPLRqhgIPZES1ieBtkH/CbvvWAol AVr+7wUyp/VJOTHiktWr5rTYq0ZphIs= X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr289075pjb.138.1565049909624; Mon, 05 Aug 2019 17:05:09 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id i3sm92149782pfo.138.2019.08.05.17.05.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 17:05:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 5 Aug 2019 17:05:03 -0700 Message-Id: <20190806000506.10833-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH v4 0/3] target/arm: Reduce overhead of cpu_get_tb_cpu_state X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Version 3 was back in February: https://lists.gnu.org/archive/html/qemu-devel/2019-02/msg06002.html Changes since v3: * Rebase. * Do not cache XSCALE_CPAR now that it overlaps VECSTRIDE. * Leave the new v7m bits as uncached. I haven't figured out all of the ways fpccr is modified. Changes since v2: * Do not cache VECLEN, VECSTRIDE, VFPEN. These variables come from VFP_FPSCR and VFP_FPEXC, not from system control registers. * Move HANDLER and STACKCHECK to rebuild_hflags_a32, instead of building them in rebuild_hflags_common. Changes since v1: * Apparently I had started a last-minute API change, and failed to covert all of the users, and also failed to re-test afterward. * Retain assertions for --enable-debug-tcg. r~ Richard Henderson (3): target/arm: Split out recompute_hflags et al target/arm: Rebuild hflags at EL changes and MSR writes target/arm: Rely on hflags correct in cpu_get_tb_cpu_state target/arm/cpu.h | 35 ++-- target/arm/helper.h | 3 + target/arm/internals.h | 3 + linux-user/syscall.c | 1 + target/arm/cpu.c | 1 + target/arm/helper-a64.c | 3 + target/arm/helper.c | 334 ++++++++++++++++++++++--------------- target/arm/machine.c | 1 + target/arm/op_helper.c | 1 + target/arm/translate-a64.c | 6 +- target/arm/translate.c | 14 +- 11 files changed, 254 insertions(+), 148 deletions(-) -- 2.17.1