Message ID | 20211013182239.991127-7-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | f79e80899dbcd306ae2e8a43bc5e139b051f30f4 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp122087ime; Wed, 13 Oct 2021 11:27:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxawmYQ2g6ZczRVx/gEeYDAzQvljmh42UA17YUu1Ayytfd2e51kQ+CWJC/oXt5nYEg0FDjP X-Received: by 2002:ac8:67c2:: with SMTP id r2mr1065240qtp.201.1634149643603; Wed, 13 Oct 2021 11:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634149643; cv=none; d=google.com; s=arc-20160816; b=gTKdEzxSE/W2SK/QiNUxxi40AQeFEQ2kYC8Wj7xioIIGGd08XjDeqJQQ/knxMFKubp iNKxylqsAKP0BVISfr4mr+UrdyOPpXJzC1/da3E4s+feGNpK4VN6dO3j4f1THQ+fPF23 KYTndk7HQQb7VngZzkjN5t/K3m92fqtHXV8u43VTys0Y4QgCTKpmPrJ2T9clx5RXT+51 Hy3/QRvdzis3GcvAAUHslzRpSPxNj6NP4YRfhbtZ3UTAYWYl3O6eSPJV4n1Tb2HBfPI9 89uqERThCdIV84Pv4YAm1gOA0GPfIaQPCwmdQBTF8K5EMq7M6gWGS/D4s8ze3BjjpltM OkqA== 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=g7vb1DiY7NwJL2MkD8o8UL44MwU+VnbJvJpghPXqqyM=; b=w4RX1xXJoK6Gd07CwtUhx3TIWlo6B3C3EwR4/28fMxWscvVN/xLfkZRXb3b9gxe3To jNo4dVBeFoxriOEEqFwBsaGo7sGB7CJ/gBri/licDNVi/6J7HQXQ0CZhpyQuK5WWeLhT ZJEbyhDitrB8OFV1ERL56wbQM5WjOhQ/NwGKQB/vdW9D/1H3DvQt7IqKuha5pD05hNbe ByJrzVlOYZFrmVwuOfvuefkFXjw26UEZ8swBhVqmtpVw4N9INzszhWGvQLMxr80xnP6a l1SiPrs6pgxxXlwyV5aZojh4sgF+ReApTyjyVorCnU39Y4KLOHyJmMO7lE3zO3GsMm0S jKLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PgY0dfqy; 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 i5si147970qkp.203.2021.10.13.11.27.23 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Oct 2021 11:27:23 -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=PgY0dfqy; 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]:51932 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 1maiyJ-0000wk-4d for patch@linaro.org; Wed, 13 Oct 2021 14:27:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36796) 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 1maitz-0003pT-Jc for qemu-devel@nongnu.org; Wed, 13 Oct 2021 14:22:55 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:54239) 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 1maitu-00033J-4Q for qemu-devel@nongnu.org; Wed, 13 Oct 2021 14:22:55 -0400 Received: by mail-pj1-x1036.google.com with SMTP id ls18so2884503pjb.3 for <qemu-devel@nongnu.org>; Wed, 13 Oct 2021 11:22:49 -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=g7vb1DiY7NwJL2MkD8o8UL44MwU+VnbJvJpghPXqqyM=; b=PgY0dfqyKpxPmEjLOlz2Uc8zpSUmLXqkpxnppMOIn067Hc4OWaeB8/vibJyYt9VXwb d/4fQfHJwrq2Pvf+ZJX6kDII8yMVsvrwXxQ3NOBd3O49jZiuPsYTJrO1guQrvPVH4P7X 4aMtO19N+aWEAzlY+QukLmb9WnyTrB2sqwIVbLuPr1lK/nTypvu2id+isOkdVyag/SzE IvCRI5u+k3lkYmdHWkrGomgsIVSta16XO42i7i9VtTApMx3p7cVnKe+SG/3yjXlXdeH5 d6Dgdj0JzsYBeBJ1nqwNh1pFsOpFmanLnUrkthG46QAXbzoqDjLPvVqOIfO8sD5AxTYl QyRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g7vb1DiY7NwJL2MkD8o8UL44MwU+VnbJvJpghPXqqyM=; b=HpE4kDSqkwKmarlFhBux/bCusd0iH/3I5YWnmGVRGOJgnu8o+/W5XDUPMcpRFz7D0t uaxN3LQXUdK+wHC9+vHPJu6tcROfDksisodfqWap17IwPtjibU6yGt3325BEjr9Rf6hU T9YG2PwoZtXUIZRmFdMPYjJtnIMwzF7BzmCGctJ78Z1jvfSyY4e0EimTZlGUkWsXSTTR S6d0AgQv0jVxjyVVB81fnQx26rRAxk29ErhqIhFBr1qauflx4AWh5h7bjcKkINd79BP6 vmEWQiEoLia+deUr3I+tR/9H7jz7zEmKIvVDYpM4LQ8FMVRx6PitxQfaxtfqpOZjby84 383Q== X-Gm-Message-State: AOAM531J9pYMpDAiG0JMHXl8EOuDAqqc+N/0DD7Tl0qF99U/uDI93oQa 2dhYOU1z4l9PPCs0uaCXvkSdGcKUz2q0Gw== X-Received: by 2002:a17:90b:4a47:: with SMTP id lb7mr939129pjb.1.1634149368775; Wed, 13 Oct 2021 11:22:48 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id z2sm177140pfe.210.2021.10.13.11.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 11:22:48 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 06/15] target/hexagon: Implement cpu_mmu_index Date: Wed, 13 Oct 2021 11:22:30 -0700 Message-Id: <20211013182239.991127-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211013182239.991127-1-richard.henderson@linaro.org> References: <20211013182239.991127-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::1036; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1036.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 |
tcg patch queue
|
expand
|
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index f7d043865b..f90c187888 100644 --- a/target/hexagon/cpu.h +++ b/target/hexagon/cpu.h @@ -141,6 +141,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;