From patchwork Wed Oct 23 15:00:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177309 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp890607ill; Wed, 23 Oct 2019 08:34:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwszgBF6syEE7IW8pkeLCKRsClfsCgnrvIjHfu5BA6kg1yH1cIstEl0vi+Dh1Rd/6d5fnK+ X-Received: by 2002:a0c:8eca:: with SMTP id y10mr6554068qvb.138.1571844873202; Wed, 23 Oct 2019 08:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571844873; cv=none; d=google.com; s=arc-20160816; b=qLS3/T0HJxKTprGTWCSGxRddVDCnBYH5rz75fgBGNANdzHT6+CW9zu/ACCDtSAV6Uu KcKUAFykPt8oSqaaadxB/JeeVKqch1BubIgHjAPBUg/9qzsyPpPM4HnIStGJBwGr5KpA 0nH/LdSjfJMLXIzXDQ88Vrzzw/0NzYcGHbtK1gEOuzNAORaittTDwKvA+MRPHnTpDv9h IGjh6fnE30UokPZZaRX7XNRIFH4+R5ZvzE8pJMUZTsNJ+agp8te8/KnL8h+6sBIdbv4O Ss2Rd+ygHbX0buzH+c4m//HRUdk7Ocx+omLXzm8Ju3MPIVoqpYFPmi9x+h2usiC0BDL4 96tA== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=G2RHHCFtsP5auZ4wmaveYQuuH6u7l3/77Cc/6E9VhRU=; b=gblJpHfpq4vaIYgKmWJ4dBcNpLNmz2VtSpiKR8PRGbMYaY2Ht8K7zp8fH9+L8Lcn7Q CDadFPqecs/Ziz7jwza9tIRM0WCnnI0ZWs0xC79uuvk+Q3AhkJ8rhAqXShvZxFpQk0BG Bgke6k/aXT6/ZbChZR6adTm2Ljj6kOyxQaf8m0HvWf8c+PH6ZEfCQUOtpoPeWEFbB9eR ZyKkfZeQs+O4Waz48obA6bXxWQxZsNCwagT7FSkuTuoy7SPbxYiXJdzJ/fDIRCHD/8XE QT5Ps1pTYAt/DNX52U+zqLvs+1DFoR7oGXv9kHCN4tM0En024D9zh4Fx0NpSelTNfipH 9HPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oNlh9OpJ; 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=pass (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 10si19425342qty.43.2019.10.23.08.34.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2019 08:34:33 -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=pass header.i=@linaro.org header.s=google header.b=oNlh9OpJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNIee-0002V2-L2 for patch@linaro.org; Wed, 23 Oct 2019 11:34:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35348) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNI8v-0008Dk-RW for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNI8q-0001Db-M3 for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:01:45 -0400 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:38830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNI8o-0000yd-Ju for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:01:38 -0400 Received: by mail-qt1-x843.google.com with SMTP id o25so19348572qtr.5 for ; Wed, 23 Oct 2019 08:01:03 -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=G2RHHCFtsP5auZ4wmaveYQuuH6u7l3/77Cc/6E9VhRU=; b=oNlh9OpJdglfNTjhTYgZNIGISi32kTmvH0YOBux5UM5605QPr0d0B0bAinIAoZqDsT vvk1WvcbqN3oqgrbadClOCpr8emdHK41QHVkTcDyscl6u224wbq/zWtViA6MCZkrE+jK XwehN3wEmhMKbG42dCxegyLjpLHkDeEh2kJgzKho+osgSpFOzVvK5PQyuB8AqRJrGgD8 iA2SWYzLcP5R8ocqQZdgP4+i37Ks0HCgXWpNHc0qugJDDm5jz51eX5I6WW0q0H/ykv5d INSDxa5e3ke5H6MqPPgJZ1ge1cj8T6n64Qcn5g/ffMLve8P2ycUF0BaBBTeyA9Jw9hXt 5KSw== 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=G2RHHCFtsP5auZ4wmaveYQuuH6u7l3/77Cc/6E9VhRU=; b=TiLMkpbeQaVYFOS5fgyvE1qpieIfWSaE02oqSXhgvUO4AriRyads5u4HJ5FpI5xWFo BJnSUbEZnTOCj02sbYMCM9Yrb9iC33D7jpz9Nm5Manc6RzfXRrrhqVhtcEWsG7t4o6q5 TYnLSc9nLNZM/1kBQLJhHpr6ZsgZr2Ua0yxjQsEoEsApUA18kW0iEhbcfl7x2J5Vy2u7 +Yj7SJOvn4FaHlPQxmz2ybp+yS/9pvVz9FFNPbDM0z/UhKPHKMZJbMcfTuXgedvRY4V/ SE0+nK6WnO39w1+kQdYQW0rOUcMbF48gxDXFtaWFhbhV0MWOZ3Dl8Vlbph6zvZdCBbd4 fwyQ== X-Gm-Message-State: APjAAAURiejIRGu8bJpvI2r8Ee2HUgHJ99BQHTGkzFDQjbmgv/fufa9h mlj8NhfFgigdAA5yI7jcobn+FZjatmo= X-Received: by 2002:ac8:7052:: with SMTP id y18mr9879850qtm.24.1571842861327; Wed, 23 Oct 2019 08:01:01 -0700 (PDT) Received: from localhost.localdomain (198-4-20-64.static.cosmoweb.net. [64.20.4.198]) by smtp.gmail.com with ESMTPSA id l189sm11030168qke.69.2019.10.23.08.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 08:00:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v9 00/24] target/arm: Reduce overhead of cpu_get_tb_cpu_state Date: Wed, 23 Oct 2019 11:00:33 -0400 Message-Id: <20191023150057.25731-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::843 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" Changes since v8: * Rebuild hflags in linux-user/*/cpu_loop.c, after changing to big-endian. This allows the armeb busybox ls to pass. I don't have a test image for aarch64_eb, but the code looks the same. Changes since v7: * Rebuild hflags for all successful nvic writes (Peter). * Rebuild hflags for Xscale sctlr writes (Peter). Changes since v6: * Regen hflags in two more places for m-profile (patch 19). ... r~ Richard Henderson (24): target/arm: Split out rebuild_hflags_common target/arm: Split out rebuild_hflags_a64 target/arm: Split out rebuild_hflags_common_32 target/arm: Split arm_cpu_data_is_big_endian target/arm: Split out rebuild_hflags_m32 target/arm: Reduce tests vs M-profile in cpu_get_tb_cpu_state target/arm: Split out rebuild_hflags_a32 target/arm: Split out rebuild_hflags_aprofile target/arm: Hoist XSCALE_CPAR, VECLEN, VECSTRIDE in cpu_get_tb_cpu_state target/arm: Simplify set of PSTATE_SS in cpu_get_tb_cpu_state target/arm: Hoist computation of TBFLAG_A32.VFPEN target/arm: Add arm_rebuild_hflags target/arm: Split out arm_mmu_idx_el target/arm: Hoist store to cs_base in cpu_get_tb_cpu_state target/arm: Add HELPER(rebuild_hflags_{a32,a64,m32}) target/arm: Rebuild hflags at EL changes target/arm: Rebuild hflags at MSR writes target/arm: Rebuild hflags at CPSR writes target/arm: Rebuild hflags at Xscale SCTLR writes target/arm: Rebuild hflags for M-profile target/arm: Rebuild hflags for M-profile NVIC linux-user/aarch64: Rebuild hflags for TARGET_WORDS_BIGENDIAN linux-user/arm: Rebuild hflags for TARGET_WORDS_BIGENDIAN target/arm: Rely on hflags correct in cpu_get_tb_cpu_state target/arm/cpu.h | 84 +++++--- target/arm/helper.h | 4 + target/arm/internals.h | 9 + hw/intc/armv7m_nvic.c | 22 +- linux-user/aarch64/cpu_loop.c | 1 + linux-user/arm/cpu_loop.c | 1 + linux-user/syscall.c | 1 + target/arm/cpu.c | 1 + target/arm/helper-a64.c | 3 + target/arm/helper.c | 393 ++++++++++++++++++++++------------ target/arm/m_helper.c | 6 + target/arm/machine.c | 1 + target/arm/op_helper.c | 4 + target/arm/translate-a64.c | 13 +- target/arm/translate.c | 33 ++- 15 files changed, 392 insertions(+), 184 deletions(-) -- 2.17.1