Message ID | 20210803041443.55452-34-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp312103jap; Mon, 2 Aug 2021 21:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5cjsZ3T03WJN1LEJkMDviWox9MI6agGKA/3D85JsBYthmnsRngZMnVlccsvffb8LONaWO X-Received: by 2002:a02:6d5d:: with SMTP id e29mr17840816jaf.44.1627964857181; Mon, 02 Aug 2021 21:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627964857; cv=none; d=google.com; s=arc-20160816; b=nEcsJ5T5oBSV2rmMO9Jq6WrV+PUJjuygrW2a2w9ZtRhrlIfXTcHeqBAUGoLwPMIOv+ mvpwr7dWEgMN+5UghU+ZR9uY/fLNypDbVXEgkJDwO5FiihIN7fSsZUWfn90mUrQHF71O muWjOavPmjrDwGkF4AvyFRQ872JaYJe12P6L6OUxbNKtTJYmDqUWr5CB7h7FMGxP5RFx PWBMyoVmVzsYG9nQz6bG6dRxcMcApRN4HBicygPzoOF3+T6qiUI7JDr96d9WT5iv240P n1qIGxuSS/wO+DbagtgP2vQuH5kvhR4f8XSsr7KKGtFnXMX2uwo8GXEeflfXp68PZzBL gcZw== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=z5GHTABClhIJC54p0f9xKGIGp+EMnbq9v7YA+T66nys=; b=NG3od+d+3oL5pCAaBEYHAoy+Yw99LCWmzksrfyEIk3A3k33A5Rp1grJtkO8DoOI+JB WsLvMnqRgUGrd3xBc+BVwyjRtous3cxu9TD+w6qAYsnGIZv9PNVmWHaHK9ZbeUifNJSC yuS4sZkcD9kIYD0OrqCRevHcy4CFikF5r7UiI0jcz+G7JViwACHx6ouosq5kZw7jY5lx tjMrrXVaoxInWekOpIe0NZATa/hk83VBLKwKS0vtPeCnmSOdsmSuGZW0UdqVPBiwtOvn IORW2y1+bYnQvKwJBvusmgobQAIdlCeqbcYgx6SC7ZJ60XV7mE8Pjl63ZMgp6Nak/zrr jS3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MoTS4pJf; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n20si14048582jat.115.2021.08.02.21.27.37 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Aug 2021 21:27:37 -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=MoTS4pJf; 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]:38700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1mAm1g-0003b1-K2 for patch@linaro.org; Tue, 03 Aug 2021 00:27:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1mAlpv-0003r8-QG for qemu-devel@nongnu.org; Tue, 03 Aug 2021 00:15:28 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:50928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1mAlpu-0002Ul-2m for qemu-devel@nongnu.org; Tue, 03 Aug 2021 00:15:27 -0400 Received: by mail-pj1-x1034.google.com with SMTP id l19so28136639pjz.0 for <qemu-devel@nongnu.org>; Mon, 02 Aug 2021 21:15:25 -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 :mime-version:content-transfer-encoding; bh=z5GHTABClhIJC54p0f9xKGIGp+EMnbq9v7YA+T66nys=; b=MoTS4pJfLmTv6zSAowSW7wf8Ab4LtRtT+6zQkXw5va9+u43fACQ/Vg3NPp4hcHkiPJ MlEu1QDxI6+qgDQbjwx7EECaNmB+xxdmXDn528azzzmxjWJacD+YDwNs3UDwT951kQkv /YiwkZRW+y4MtO0phCJdB3ms4o51VZnp9ML9OtMZmqyAXSn6qvI52CHeYR/Qzkc2o9Wx ZVtcjMubK5qn1hS69YQEKIoKZiwa2dcmNmAH0FlRF4eR9KtzE2ZoasPNdCgHEnsOb/Ud OgUDlP32swikyW5bcwnSLvBs9snc964Ywr3CgW1J+Yp6Wau108UFyl7VtGhMPd+nj+Mu vrUg== 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:mime-version:content-transfer-encoding; bh=z5GHTABClhIJC54p0f9xKGIGp+EMnbq9v7YA+T66nys=; b=odNMpGFALSWo4XR2ktHOleaTFB2Btjzt1NlwSUMWJZo6TaU7gjMxNVlwifZa0y/y9n LEt45Ev8ZxfqLbfdpjY2FMw4T9G7LYIw61+zzKpt1tKJfZOA5fB8XSzGZVaAxvCu1S16 l0rUdXBiLDlQP7H2Sz8s6dyGwDBUBVIJgtZowojc7AESFqbcXssu/oPu3HPYI5gn3eU9 47Rn6eDQlDnbJAV1dhF6TnB5wTZ3XahfrFEVkY3N2VISiVdF9Y7PKe+97FmPnGmVX1za rLDbuCR4Dc33Qhc9ulVgh5P1LQAlKjZ2nGNq3FZSvrxfD4+DJbtWJ/7rP799rqiWaUIZ emBw== X-Gm-Message-State: AOAM530nvxV8RPH1xIsmmX9Q5dVIQT/g+eS7wLTOpg2jj0tCUozAE1iC aD2Fa+LPsYySfuxmpdIP9t3pn4zNHtsF5A== X-Received: by 2002:a17:90a:9483:: with SMTP id s3mr21154845pjo.22.1627964124810; Mon, 02 Aug 2021 21:15:24 -0700 (PDT) Received: from localhost.localdomain (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id c23sm13718532pfn.140.2021.08.02.21.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 21:15:24 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v2 33/55] target/hexagon: Implement cpu_mmu_index Date: Mon, 2 Aug 2021 18:14:21 -1000 Message-Id: <20210803041443.55452-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210803041443.55452-1-richard.henderson@linaro.org> References: <20210803041443.55452-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Taylor Simpson <tsimpson@quicinc.com>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= <f4bug@amsat.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Unaligned access for user-only
|
expand
|
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index 2855dd3881..bde538fd5c 100644 --- a/target/hexagon/cpu.h +++ b/target/hexagon/cpu.h @@ -144,6 +144,15 @@ static inline void cpu_get_tb_cpu_state(CPUHexagonState *env, target_ulong *pc, #endif } +static inline int cpu_mmu_index(CPUHexagonState *env, bool ifetch) +{ +#ifdef CONFIG_USER_ONLY + return MMU_USER_IDX; +#else +#error System mode not supported on Hexagon yet +#endif +} + typedef struct CPUHexagonState CPUArchState; typedef HexagonCPU ArchCPU;