From nobody Tue Feb 10 20:07:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530317089286200.03994722928405; Fri, 29 Jun 2018 17:04:49 -0700 (PDT) Received: from localhost ([::1]:44952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ3NY-000385-FI for importer@patchew.org; Fri, 29 Jun 2018 20:04:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ3Lm-0002F3-Rq for qemu-devel@nongnu.org; Fri, 29 Jun 2018 20:02:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ3Lk-0007AA-TI for qemu-devel@nongnu.org; Fri, 29 Jun 2018 20:02:50 -0400 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:32984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZ3Lk-00078k-Np for qemu-devel@nongnu.org; Fri, 29 Jun 2018 20:02:48 -0400 Received: by mail-pl0-x244.google.com with SMTP id 6-v6so5176599plb.0 for ; Fri, 29 Jun 2018 17:02:48 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-112-211.tukw.qwest.net. [97.126.112.211]) by smtp.gmail.com with ESMTPSA id q19-v6sm15071915pff.9.2018.06.29.17.02.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jun 2018 17:02:46 -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:in-reply-to:references; bh=CJniO7UoFW9+5zglkjAGpzMZA9L0RVLuZLCX1WRXv+4=; b=Nys2lIcF+CSOjhSdolDP/yxaTFrpW9esjKiUWYJgBcAXUa1qZnG0ix8OQWSlZ9gjCg VlvKQOjMxKRAENbNU3UM9+8z6EPVijJzV02Rqp0gyn4S4DDkCJBBFX9TCsiQLsz14TYi aZsriE0+5He64OngvAMuZUcH7kS6ODMAJ6Jo0= 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:in-reply-to :references; bh=CJniO7UoFW9+5zglkjAGpzMZA9L0RVLuZLCX1WRXv+4=; b=LQ4zDz+fc01JuXquI5bapghR0e5MMNxNzxuGq9DJRsISt95BLtnee6+S9/RRzENNO6 p7qsbt8bIwdm30EyqkFNv4DL5T07L/w2YWDXLgUsmBywGCzwViS2ZiFXzLZVQoEbtONx NgLI3UmCiTRSwZmd3CA9HA0DSjXBESaxTJZe2gKPIOVEgvS/RnVoCXTxQk9nMd1wc2vJ bBbRfUvUR3aE73ayakBPBLTK70QnewakO3YlcQeGaP2oaIgE962TRvFwmm7BmaIlHrHP Yl/r5Fg2y8ZlKvph+f8nS9U9J5FBBPH0XsNKyrX6qG99Jd4KQuL/J/5QQX1LddxvE812 bGbQ== X-Gm-Message-State: APt69E2gHYdMyYy9zgHIshD5vBCD9adxlcB34fCgxDlAqVLD6J+gc/Oy bAwDziSstEl28RjtVptyMSnWDfCgd94= X-Google-Smtp-Source: ADUXVKLJ7+b/U7XOQZcefoU3EOjaLhY5T3xPm+eGRYN41G+PLNSxv4iRU3Kluh/B8o0ckxBI+FUOdw== X-Received: by 2002:a17:902:8bc6:: with SMTP id r6-v6mr16486733plo.257.1530316967487; Fri, 29 Jun 2018 17:02:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 29 Jun 2018 17:02:41 -0700 Message-Id: <20180630000242.29594-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180630000242.29594-1-richard.henderson@linaro.org> References: <20180630000242.29594-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::244 Subject: [Qemu-devel] [PATCH 1/2] target/arm: Always return ARMASIdx_NS when num_ases == 1 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index e310ffc29d..c26cc43ea8 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -2915,7 +2915,7 @@ enum { /* Return the address space index to use for a memory access */ static inline int arm_asidx_from_attrs(CPUState *cs, MemTxAttrs attrs) { - return attrs.secure ? ARMASIdx_S : ARMASIdx_NS; + return cs->num_ases > 1 && attrs.secure ? ARMASIdx_S : ARMASIdx_NS; } =20 /* Return the AddressSpace to use for a memory access --=20 2.17.1