From patchwork Fri Oct 11 13:47:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 175959 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp967537ocf; Fri, 11 Oct 2019 06:58:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEPxP1cqWO2xfXyMzjvkITI5Ztm63nJ3Kho7/jqT3OLOKqaZ8i4vqfoaMPjdAhBz00WF7a X-Received: by 2002:a05:6214:1ca:: with SMTP id c10mr16192070qvt.233.1570802280027; Fri, 11 Oct 2019 06:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570802280; cv=none; d=google.com; s=arc-20160816; b=dcov9G5Jex+5TVPSyZOet82qrjoIJYTE5yVNjKK37IRUJ1VzCzMv3R0uHwUDxhsDmo M2XINKy+f4+IE9xmfX846koT4jHWuQKZAjuBgEgx2PGmAVI7FehCV+jI3IJdtlYnL5dG 7UTuERzepXXD877qPicZYgFt1ZOUrohAh9iwqyL4tPv99QhNbJN1sLt3qSY+I/UgNygU tr17qDKZ9fiXk59TTzF2/1CSxH75Tx2v0JtFJGGDzJHHJW6BxCcT1AG6GdR5yU/XcEdl 4zb3AJoKBpWhd1pNFD/VLXmqMji6DXNkTez7ZIwa0f3im5xkFCra9rH73iRQYSmcRVYp c91A== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=loK2jdE9Lal6vbE+5e7UnQvjF9Y+wxx/GDkdqZVvRmE=; b=RMMvMTpa/YDEr9ZmkBTtbrHXtKCCUzNJvngt5QrMJwUqOg6OEBGsxhVroNnpmwEXcx UZP1MZpODWWMsgmnCqFmbmBWJ+6KqSLn1WrOM0WlGRPbBN4AEjxD32SzMxJwRDU4euzj bNjYpXnYK0AEts5zPU1Nz6va4RWZODcMyknR43wSXEgpdL8pSyIuuWhyqZsnTRSCNefD EDHJjq/yryk31T/aO50uZXzOwKQvPCNMHfDo1ZcIWdvB5HSNN8y5loQk0G0bXdGuLdyR pguDZu6MQXnqMFIUdtDc8nGmCu1qExBKXU85I5an6VK4ApBxuc79u5Lx0clvpx8SjHOw +/oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rgQUFRww; 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 u8si9449750qtc.114.2019.10.11.06.57.59 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Oct 2019 06:58:00 -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=rgQUFRww; 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]:50700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIvQd-0005sJ-4b for patch@linaro.org; Fri, 11 Oct 2019 09:57:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39065) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIvJC-0005nI-KW for qemu-devel@nongnu.org; Fri, 11 Oct 2019 09:50:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIvJB-0003zN-He for qemu-devel@nongnu.org; Fri, 11 Oct 2019 09:50:18 -0400 Received: from mail-yb1-xb41.google.com ([2607:f8b0:4864:20::b41]:43494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIvJB-0003z4-ER for qemu-devel@nongnu.org; Fri, 11 Oct 2019 09:50:17 -0400 Received: by mail-yb1-xb41.google.com with SMTP id y204so3107061yby.10 for ; Fri, 11 Oct 2019 06:50:17 -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=loK2jdE9Lal6vbE+5e7UnQvjF9Y+wxx/GDkdqZVvRmE=; b=rgQUFRwwaWMEgX5YCcnaVMpy3V0hXYTFShehuEbdsWzUWaJmEQlOeXEtWM1y27D7mM CSUMBgNLjfDQL/gi5E+/8rgfOt3WmIoZs4N4b6au6hoxDwnvhu5uGFooADfmlXnyWJcY mS/yl1wyPd1OllYK2lTPH4jVTwQ7eLiX+tGFbZF9f2vwWZbGAt4YeBGp4eP9dUYua0hD Y8h4whClCNhCo6tZoN46BceCJO8hM5113fOqxFUWzV3euz1kHcrs/4VSquCvjYvak4sn eWsLuCvjZhzCsb+mENz7ZvQa77x/xbXpQ47GS9SPXMhnGk81Vv282w8LwV3JW1qIY8cN bvGA== 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=loK2jdE9Lal6vbE+5e7UnQvjF9Y+wxx/GDkdqZVvRmE=; b=rj47UZPIimds9VbLRkN943AVpdbQh4cUGGPKVj0QIL+aKtNmy/WnA627KbGIaDNgNQ KyabqpaH+0qsgzHyGKF7oal1mtF9Ly0+Dn0nxlzz8jbZRHZOo2qQs6PNmshtEicEUFoE uKxTcWH+Ye1wPs5O6lS0+DfUPTj54VpzL8ajHTfXgUygj6nI/PjNXrgXexbffAmJrrAe 6IYAJwqj/C3eSf1X82xCge+5uy/HRcnSbeJNNfOAg/ZFRA5IGHotpMaYs3uacXMannhC dNnfeVXLZFa3QyZ7ZjPXqse6vLNDQyKg5Yf2LeFpxeQ84NU/N6c3Cqv9iOahixnEGz9j yfrQ== X-Gm-Message-State: APjAAAU4ruCSuH1IkYp7yP0jKgU/vRUzNAhpB6bj08o8hB9eF63nDrB3 drpGEGU9VpH136rwQxRiJ7DqVn5bAns= X-Received: by 2002:a25:cbce:: with SMTP id b197mr10026823ybg.355.1570801816528; Fri, 11 Oct 2019 06:50:16 -0700 (PDT) Received: from cloudburst.gateway.pace.com (67.216.151.25.pool.hargray.net. [67.216.151.25]) by smtp.gmail.com with ESMTPSA id f68sm2534000ywb.96.2019.10.11.06.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 06:50:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 10/22] target/arm: Define arm_cpu_do_unaligned_access for CONFIG_USER_ONLY Date: Fri, 11 Oct 2019 09:47:32 -0400 Message-Id: <20191011134744.2477-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011134744.2477-1-richard.henderson@linaro.org> References: <20191011134744.2477-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b41 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" We will need this to raise unaligned exceptions from user mode. Signed-off-by: Richard Henderson --- target/arm/tlb_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/target/arm/tlb_helper.c b/target/arm/tlb_helper.c index 5feb312941..29b92a1149 100644 --- a/target/arm/tlb_helper.c +++ b/target/arm/tlb_helper.c @@ -10,8 +10,6 @@ #include "internals.h" #include "exec/exec-all.h" -#if !defined(CONFIG_USER_ONLY) - static inline uint32_t merge_syn_data_abort(uint32_t template_syn, unsigned int target_el, bool same_el, bool ea, @@ -122,6 +120,7 @@ void arm_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr, arm_deliver_fault(cpu, vaddr, access_type, mmu_idx, &fi); } +#ifndef CONFIG_USER_ONLY /* * arm_cpu_do_transaction_failed: handle a memory system error response * (eg "no device/memory present at address") by raising an external abort