Message ID | 20220421151735.31996-40-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp560257map; Thu, 21 Apr 2022 08:55:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbYPFE4BRKzDDo6lp/L789A426kt7/tKRPsRE0YaAfsWVplXCxEjJ126Uqf3wnNdnrhTfk X-Received: by 2002:a25:e705:0:b0:645:781a:f870 with SMTP id e5-20020a25e705000000b00645781af870mr328149ybh.630.1650556558677; Thu, 21 Apr 2022 08:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650556558; cv=none; d=google.com; s=arc-20160816; b=LfFx/V8trRqj46c5N3bD/4SAChjuEyKBXmwqPB3uuCXrnYwhLMfdoo/OCL/zC9zccq Czf4yZbEe319CVFT5blR1ljTZ9xXPvk5GwIFqZ5JN+L4So8jUtsq5Z5/9lTgJUeDlZO1 1uxusM+TjLMOCNZPH/6o9kf0Wb6pQ4Qm3yeKKzYwZqoUmwoDOZ7BLIRlJlGE2AMjE0HH H7fjKRQ//oVyg2+GSRyOJ46ptyVIJvTgH0lwcrH+VhyZk3cXqq+UQmNLV7/ppHtpjJfa YpjGKItvroSOUUZXIngCdrLMkanMC6E6VgkZYcsx0qlsV07O1L8JroRNzqC5bIqoawTT kwjQ== 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=zc1mqybjsWcyFEwC/S0EjY6YuNy3rNeZ6fKgxDEj7XU=; b=uTzdQQc4sKu3wNg1aj/sweQimDbLU8R/TuD7sF/2wNM23B/Y1LuzTznVF05ZNnFmdA xCmKWMdJKbSFNIlgF1qC7HpAxvwxe9pNZWVepCIfeq507tEKZbF7JWM8c6pWe1t21SQz t3Ws0x/kKkHntYEAYWRpn0VUu6rjtGyjismiSUlJUkRMXAYPa+2NlfUZkEbzPZuE2Aq9 G4qBVolTOHZoeLLqPD2Z2io8fGPPmICi/SULdjjJ0BCCG5ZTQIL+WFGqA+QU1c/LdZMd 1kiRKLYAl4zGss+7vrkbuvdTUi7g/F6h7DM7bgNl7EjV97QXXHVqvy1EvN+EEqN0eMw3 gOwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DY4Wslsw; 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 z203-20020a2565d4000000b0063850c0d4c8si2675276ybb.407.2022.04.21.08.55.58 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Apr 2022 08:55:58 -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=DY4Wslsw; 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]:60894 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 1nhZ9y-0006bY-5n for patch@linaro.org; Thu, 21 Apr 2022 11:55:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43328) 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 1nhYa2-0000HX-AD for qemu-devel@nongnu.org; Thu, 21 Apr 2022 11:18:51 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:46079) 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 1nhYZr-0006PE-Jd for qemu-devel@nongnu.org; Thu, 21 Apr 2022 11:18:40 -0400 Received: by mail-pl1-x632.google.com with SMTP id h12so1498865plf.12 for <qemu-devel@nongnu.org>; Thu, 21 Apr 2022 08:18:39 -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=zc1mqybjsWcyFEwC/S0EjY6YuNy3rNeZ6fKgxDEj7XU=; b=DY4WslswatTehUfzCFU4/Xo4POtZ8FzrfjA0axhpS1cJCyTVy/fhxBz3xtvlRIFUvn umY3qjAt4hyEsUlprKA8Q/14ZRQo3AmSQCXsyqtJoZ+BiAcIsGlzBxlgAKEmqtmwScUT ky22D+z6IVGOJJTrsywdCjIk822GSJPe+c6uD3HdYNRYInTGyfWmm9oogJR+68e4cJQm FedS0Qfa66lp1ghN+O0IXT1wEJ0/A97f8TqzGESZ/XUeXFKO//RdT4xziOijOcmhfVxF QNr/j4oQXSW2ZfjRS2RqR1K07x6KusH4zymIUfuu6KZmsrX6E7E0wNYC+ZzQqkvc9Gah YOng== 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=zc1mqybjsWcyFEwC/S0EjY6YuNy3rNeZ6fKgxDEj7XU=; b=2obfa9V8jV3oubPhwxaKSWAGRddQQ9GLvsqfWc8HQt5dhRezrvruOy9mATcU9uh1/D XJQYZEuPnktsSV68+H9mKYHR0zCyc5oaCPliMe79n7G6onH8m+6Q2RRmWYQniAEX2nQr Zlh4tcs2iUu093Hsv5RAkrzIg4JtsT1koZMKWLyZcq37hJxx6xQkkHQ3mSSA7n09y0Ct 8cQqWQjML4EvTyk/fZr8BEBkL2pOwAWOJacMaJzkR1XmYgj1FFxmCQfUmPh3XVJeWwor zzFqSi5lf59s2hL62YNNt4qbTMs6rJsCk9bW4qihnUfPR/o2P/AfRxfqtBlvqI8ZjmZc LI+A== X-Gm-Message-State: AOAM531L2tlipL8wui2I//BYg2OP+EKQvv6mBDucAEILm6ccDCg9RldA RMwx3WhX5U1u9tkuNuGb+2BwfV0C0BkGMQ== X-Received: by 2002:a17:90b:3ecc:b0:1d2:c238:d92e with SMTP id rm12-20020a17090b3ecc00b001d2c238d92emr146334pjb.79.1650554318323; Thu, 21 Apr 2022 08:18:38 -0700 (PDT) Received: from stoup.. ([2607:fb90:80c8:6cf3:a91a:4957:ba18:ac18]) by smtp.gmail.com with ESMTPSA id z16-20020a056a00241000b004f3a647ae89sm24616248pfh.174.2022.04.21.08.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 08:18:37 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v7 39/64] target/nios2: Implement CR_STATUS.RSIE Date: Thu, 21 Apr 2022 08:17:10 -0700 Message-Id: <20220421151735.31996-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220421151735.31996-1-richard.henderson@linaro.org> References: <20220421151735.31996-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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: Peter Maydell <peter.maydell@linaro.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
nios2 fixes, cleanups, shadow reg sets
|
expand
|
diff --git a/target/nios2/cpu.c b/target/nios2/cpu.c index a0c3e97d72..7d734280d1 100644 --- a/target/nios2/cpu.c +++ b/target/nios2/cpu.c @@ -54,9 +54,9 @@ static void nios2_cpu_reset(DeviceState *dev) #if defined(CONFIG_USER_ONLY) /* Start in user mode with interrupts enabled. */ - env->ctrl[CR_STATUS] = CR_STATUS_U | CR_STATUS_PIE; + env->ctrl[CR_STATUS] = CR_STATUS_RSIE | CR_STATUS_U | CR_STATUS_PIE; #else - env->ctrl[CR_STATUS] = 0; + env->ctrl[CR_STATUS] = CR_STATUS_RSIE; #endif } @@ -127,6 +127,7 @@ static void realize_cr_status(CPUState *cs) WR_REG(CR_BADADDR); /* TODO: These control registers are not present with the EIC. */ + RO_FIELD(CR_STATUS, RSIE); WR_REG(CR_IENABLE); RO_REG(CR_IPENDING);