Message ID | 20230921173720.3250581-15-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 31aaaddecb36c17eeeb991e2124de5132df18af9 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:ea87:0:b0:31d:da82:a3b4 with SMTP id s7csp613224wrm; Thu, 21 Sep 2023 10:38:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1IQ5lKexhPeiBjAdj1/JrjONBv4KVUovTGfCKm6j66+8QSrOKwHEHshdDQQkklarpYDaa X-Received: by 2002:a0c:f554:0:b0:647:423d:d0cf with SMTP id p20-20020a0cf554000000b00647423dd0cfmr402560qvm.26.1695317908557; Thu, 21 Sep 2023 10:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695317908; cv=none; d=google.com; s=arc-20160816; b=YftxcNCTkxg11uLDEdaINc3cJ0Vzj8Z67OVIS2B+Pxk9FJabblIKNlXX8yZhX+DENE aYKWbzyCQrBu94Sf1lSAJAepU1YSYIE1hE0zu5gYsYm2M5klFl6RBGEA7N/Nv0bbrno5 dQelRB3JB4Wb3Jnb2zeSnnEoh7Cw/1unvorecQznBvPHcxWMtGOsxhaWKn+zAc138glN M3tzYW47KIRdKo/JuStuixNL+MObAGqL+QEcsTfhzdkzP8UbcB6oGL0JtJqU1gQjwYzZ +UnhBItuipsawjbqIcRJkAprExOH/ya2emxNfqxlW+sJ7gdoeC5mg6a/Qix5vlv4+XGc Iq2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=qQViptMVSdrRp9VfBJYI4Acm+qff4tHoiCsPi2XOdW4=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=Dyl9JhKAWXfFPs1+L7isWtNnwwlZJixqX9+hbmXovK2mYjzWepIjrIKkdCH22KSyJR UN9qAxyZDsZBQjTgyuX0r5+POqu560IfEsx+WWoPH2NLm0jdbBeKcImfkJRKlxbA1zLK v5KU//6VUWiNa8oT16CdMTv1RcFmId3iUrxqh2JZDNQ8C99/RMICyF6C9XP4xKIAJN1T 3l3CD+sm89T2s5w1gNk/1EYXq4SjhP5B7mp0rW1WuYt3l1rypWshPX0sNNTRpSkHM3ts 2WpvZpcosMBTcyot1S3LN8z/WrjGyUuMnEmLutv8gFPAoqqdyJBpaZ8ii+cQSdY/gZMh 3Mow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sOtS7RUw; 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 r15-20020a0ccc0f000000b00655e15f4d4asi1134279qvk.339.2023.09.21.10.38.28 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2023 10:38:28 -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=sOtS7RUw; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1qjNcP-00022q-Nb; Thu, 21 Sep 2023 13:37:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1qjNcO-00021h-L1 for qemu-devel@nongnu.org; Thu, 21 Sep 2023 13:37:36 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1qjNcI-0007fw-Es for qemu-devel@nongnu.org; Thu, 21 Sep 2023 13:37:34 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40528376459so12853815e9.3 for <qemu-devel@nongnu.org>; Thu, 21 Sep 2023 10:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695317849; x=1695922649; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=qQViptMVSdrRp9VfBJYI4Acm+qff4tHoiCsPi2XOdW4=; b=sOtS7RUwDcekYN4b2FEkx7Hyj0TbMkHcFTWhNAL0K1KUXiTNVBEBLAZZSWASajiMPj 0DqP+PdhsLdEiaeTqke/OElkln3DgEMXLMDFY/j2mcw4JiqKc0fvXqmdtp4D0k5KH4yC RkafU5r17D1ktwVhrMQ7SIA6FqKsyWhL0SdqeQvkR65tq1p4i2K6moXttcFbeS5dLIoJ y+ur2HcEPkeT2wmuzWhz9I2TRZPi0j2SJObRBFkQAE46fd19L309LICO1CjiKNFSyQyH jQB9JBcQqrXOtMMOJw+eOcmNW9wF7KeiSkl9HzMmmKpomwItwJMWxKrAhP9EtQq43crk t7UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695317849; x=1695922649; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qQViptMVSdrRp9VfBJYI4Acm+qff4tHoiCsPi2XOdW4=; b=RDXykLfgiwmDC6qFWvYpqO7zEcIKzMdqK2nWX9vO+psFnxUMXvWw98R30+nYSXe4D4 oaur64xIcGiWhDpzNVfs0whRLA4dGeTBH3+mdhEVlQE7mrCrnxITbYnkBB2MQ5NZusFk 06mMGZtySUypdlc2ThrGBOVU8HU9y1w+zPio09cIatcj2So8bcR2Tb7NOF7wUJs0RUFa KQU0kc8ea9AETFB9QLvLZE1gCWUyroNjftmJvshFZnB3brKGlW4YDNwyrMLmxoheJUa8 hgZZnRRBxtIAJAmPVMUL5nyyG/UwpQ2fnH8qZ99KQTMqfcKLiCGMK3unMvdkr0lSY7yl 89Cg== X-Gm-Message-State: AOJu0YwD4xzXDqlczLk1z7UFe7k/dyq7Uxbqy+eBp7sP2r3cRAGOhZjh N0m80dARHvgwjxmfsjAu75LNPTlsWm/y2moc48Y= X-Received: by 2002:a05:600c:3b1d:b0:405:36d7:4581 with SMTP id m29-20020a05600c3b1d00b0040536d74581mr1738731wms.9.1695317849141; Thu, 21 Sep 2023 10:37:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id m14-20020a7bce0e000000b003feff926fc5sm2464122wmc.17.2023.09.21.10.37.28 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:37:28 -0700 (PDT) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 14/30] target/arm: Define syndrome function for MOPS exceptions Date: Thu, 21 Sep 2023 18:37:04 +0100 Message-Id: <20230921173720.3250581-15-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230921173720.3250581-1-peter.maydell@linaro.org> References: <20230921173720.3250581-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x336.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.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> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/30] target/m68k: Add URL to semihosting spec
|
expand
|
diff --git a/target/arm/syndrome.h b/target/arm/syndrome.h index 8a6b8f8162a..5d34755508d 100644 --- a/target/arm/syndrome.h +++ b/target/arm/syndrome.h @@ -58,6 +58,7 @@ enum arm_exception_class { EC_DATAABORT = 0x24, EC_DATAABORT_SAME_EL = 0x25, EC_SPALIGNMENT = 0x26, + EC_MOP = 0x27, EC_AA32_FPTRAP = 0x28, EC_AA64_FPTRAP = 0x2c, EC_SERROR = 0x2f, @@ -334,4 +335,15 @@ static inline uint32_t syn_serror(uint32_t extra) return (EC_SERROR << ARM_EL_EC_SHIFT) | ARM_EL_IL | extra; } +static inline uint32_t syn_mop(bool is_set, bool is_setg, int options, + bool epilogue, bool wrong_option, bool option_a, + int destreg, int srcreg, int sizereg) +{ + return (EC_MOP << ARM_EL_EC_SHIFT) | ARM_EL_IL | + (is_set << 24) | (is_setg << 23) | (options << 19) | + (epilogue << 18) | (wrong_option << 17) | (option_a << 16) | + (destreg << 10) | (srcreg << 5) | sizereg; +} + + #endif /* TARGET_ARM_SYNDROME_H */