Received: by 2002:a17:906:6698:b0:a28:f940:7a27 with SMTP id z24csp1411214ejo; Sat, 6 Jan 2024 10:15:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+aZxMaZdxz4r69woaSYHXx2eUUmEc7EyE1j/gtkfn082fF9lPaZGgl583S+lbLvOk/023 X-Received: by 2002:a05:622a:56:b0:429:8bfa:9303 with SMTP id y22-20020a05622a005600b004298bfa9303mr252022qtw.38.1704564954778; Sat, 06 Jan 2024 10:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704564954; cv=none; d=google.com; s=arc-20160816; b=O9IlrgK4qFvGGI9HNFxm4Con/hDTE3mqMuweU73m427s9qs6WsOwQQ7rIfK0K1wHQQ 4KIdG0aV8+IS4Our155jA2SnuS4c5CFaiYQh4C56UZcEKKmQiOqflgdU2JIdSNPeMscE AQnCnGRjqQNp/4cSxUaW0RGWBvqiLnvJsfXH8eU+wxkAvn1lL7xtvIbKtIWA/ecgV4Hp t4RoUH6EIANBfbVfcQ5t2eKmOTCMTbuVFwhBcKp8RG4OSNqiz93zLegRviQPB8jSWi1e K+1JLuck3PHz6y0pu7OD0rPgTx3ZEYZ4knZhIsEk3fj1hAa9uoVs2AWfUysI/T4A8Un9 UeWw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=N4QMyS2vu9r8HvxEGoMq7VZRzm0rW7dWLj24PqsQr/w=; fh=R87mPwhYHu0gF5afZtbOsfEVx9y6lHOQHbd5WAm8bKQ=; b=DISLI151PzD2NSu/nRgsvLPk1E6hKzxue9IAMTFeLgeklPAPy1eVfcgcF4xBiAYBeZ Cg1R9IR0SbposlzI7hhcnZKkvgOoPBQbXntnoKfcHZ+VQgdLBucK7ofkksShxm1TBXu5 lzuAG289WgAJ7aaxPaOZTh75C19ckL3irBDMa9G43QURFuNq0OsOZZnkEh6zQ+e9odQh WuX/CPTWH4pY7s061WluiIUyc4UtMa32FENKlvq0tWaYm36wK1WwcoWZSmUYkvvSpm6f tvyJCrALzac6kc98m+2i7/vvg4E7RJW4dfpoCcVgwPR2hRu96bglMkxrpfCxeo3JDg/Y JxFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rfc1149.net header.s=smtp header.b=IvV1hmzI; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rfc1149.net Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v9-20020a05622a014900b004287ebedb0fsi4290721qtw.727.2024.01.06.10.15.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 06 Jan 2024 10:15:54 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=@rfc1149.net header.s=smtp header.b=IvV1hmzI; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rfc1149.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMBCT-0006N2-1y; Sat, 06 Jan 2024 13:15:13 -0500 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 ) id 1rMBCR-0006MH-Ms; Sat, 06 Jan 2024 13:15:11 -0500 Received: from zoidberg.rfc1149.net ([195.154.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMBCP-0001vx-RS; Sat, 06 Jan 2024 13:15:11 -0500 Received: from 127.0.0.1 (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by zoidberg.rfc1149.net (Postfix) with ESMTPSA id 212D180024; Sat, 6 Jan 2024 19:15:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rfc1149.net; s=smtp; t=1704564904; bh=uion8r+6NFyJE1zzEuSuvOZ83zGWGVvSYSaEc/TUxuY=; h=From:To:Cc:Subject:Date; b=IvV1hmzIWzRkoxQeDpMsmLIDIqymDvL40Gm/Ufwwf1GZYMRLsY6ufBc61ehJlAiP/ mX3T6sC6smH3mrrfBPCkhhnviuOmFwrr7ii4za0s6JeOf4CY75IlChr47OmAXV0fqV 2V4bT0zdgEkeDJ9aCfAPf+Q0p1pL6ICwjnIizwyU2nK8FFQtpBhDk23C420Gct+b1K XIMK8SeH+s/19cyWqvUhQlGL6yFCi99O1CoYYQENaIlzYm9Qc6eNxUJKSSzjdYCcCY kxQ7uA/ik5IZkC1hvUYtXGTgshB07PN65vM1yla1HJAchswrpYR6DK40QeklubQIor R/hyNLl8tZsow== From: Samuel Tardieu To: qemu-devel@nongnu.org Cc: Anton Kochkov , qemu-arm@nongnu.org, Alexandre Iooss , Arnaud Minier , =?UTF-8?q?In=C3=A8s=20Varhol?= , Alistair Francis , Peter Maydell , Samuel Tardieu Subject: [PATCH v3 0/3] Add "num-prio-bits" property for Cortex-M devices Date: Sat, 6 Jan 2024 19:15:00 +0100 Message-ID: <20240106181503.1746200-1-sam@rfc1149.net> X-Mailer: git-send-email 2.42.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=195.154.227.159; envelope-from=sam@rfc1149.net; helo=zoidberg.rfc1149.net 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, 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-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: I/rhNtFbiUmc This patch series builds on a discussion initiated by Anton Kochkov on this list in 2022. It allows setting the appropriate number of priority bits for Cortex-M devices. For example, FreeRTOS checks at startup that the right number of priority bits is available in order to guarantee its runtime structures safety. They have added a configuration option to disable this check when running on QEMU because QEMU always use 2 bits for Cortex-M0/M0+/M1 and 8 bits for other devices. While this change allows the number of priority bits to be properly configured, it keeps the same default as before in order to preserve backward compatibility unless the SoC configures the exact value. Changes from v2: - Add the description of the new armv7m property in include/hw/arm/armv7m.h. Changes from v1: - Add support for the STM32L4x5 SOC family (which is currently under review for integration) and fix the Based-on: trailer in the cover letter. - Fix a typo in one of the commit messages ("compatibility") Based-on: <20240106163905.42027-1-ines.varhol@telecom-paris.fr> ([PATCH v5 0/2] Add minimal support for the B-L475E-IOT01A board) Samuel Tardieu (3): hw/intc/armv7m_nvic: add "num-prio-bits" property hw/arm/armv7m: alias the NVIC "num-prio-bits" property hw/arm/socs: configure priority bits for existing SOCs hw/arm/armv7m.c | 2 ++ hw/arm/stellaris.c | 2 ++ hw/arm/stm32f100_soc.c | 1 + hw/arm/stm32f205_soc.c | 1 + hw/arm/stm32f405_soc.c | 1 + hw/arm/stm32l4x5_soc.c | 1 + hw/intc/armv7m_nvic.c | 23 ++++++++++++++++++++++- include/hw/arm/armv7m.h | 1 + 8 files changed, 31 insertions(+), 1 deletion(-) -- 2.42.0