From patchwork Mon Sep 11 13:52:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 112188 Delivered-To: patches@linaro.org Received: by 10.100.153.131 with SMTP id 3csp5825731pji; Mon, 11 Sep 2017 06:51:50 -0700 (PDT) X-Google-Smtp-Source: AOwi7QA4YdFhpRn+vBeRX+LqejFyAVCWVUvBj+Y3JHp87HLDQGpATXpm8+FimN811DZcd7oSSXvm X-Received: by 10.25.166.69 with SMTP id p66mr4069379lfe.190.1505137910059; Mon, 11 Sep 2017 06:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505137910; cv=none; d=google.com; s=arc-20160816; b=SAyPd3P+laiwnEnmguJLUpiPweTIcDi6r8nq1b0eOMglOgfgTFPGb+v5tQHk6eVdmH 9rYlY93/WuKcDUrWOui/Nhhnskep2yg0W+c8e3hJgF7rDRrh3eqyX9jizfV7KFJX5SZF fsC5F7lBwNyIxhGOeYxatTlSQGiImeaHRaHHOjOzw9X3iubvYuaXnvNZRkZXi4Vqde39 K2Qlnc1LxCYuEgfpUVSzGzi+sKOPDG3fhfHXU5NttJ+jYFslj7sTQsfPz7YsXXnbmZWM VQ2CFjF5pSiowmcwKtZIM5mzp5qb7YFS9E9evVRZWWz1DArFn1OmKwMixCu0B385fRPb pz+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=bf7EBUvAk90m8kT8X+mgzX74sVbZFsFOS0pyKj6tAI8=; b=kUD1pLZdikkQhYiZzgJ2k9f0oq8x2e7nGhtwzicsYgLvsz1TOlWiCoEA5cp3NuvVNA ZNocL9B3EmGTh8vkPiMJHcatf4nyDZE1JkIZWesBzEyzF7nu4Yr7AuBN/CkOo7K3FK57 KoAI/hXIcnSrttUVskrd70odmHon9Tij2Bdbg1VU5hDj5bCyfL9xTaKW/luVte5aFQKG f1RAWfGzyztFnlHVSp7N583COhmtMDQv6kSJDrJpeHT0MZYB8IFNOO7u8j4YeCGg3DHB i5Aw0/LdGq3eZhTTJ1ahaVXbd0kQ4bglScUSC2uguzxUQDqXCGz3XXDdU/y9MeZZ/VsF jUkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by mx.google.com with ESMTPS id o87si3449227lfc.3.2017.09.11.06.51.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Sep 2017 06:51:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) client-ip=2001:8b0:1d0::2; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1drP7o-0007lb-Qw; Mon, 11 Sep 2017 14:51:44 +0100 From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 0/7] ARMv8M: some bugfixes and prep. cleanup Date: Mon, 11 Sep 2017 14:52:03 +0100 Message-Id: <1505137930-13255-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Seven simple patches off the top of my v8M work in progress: three bugfixes which are also relevant for v7M: * need to clear exclusive monitor on exception entry/exit * wrong BFSR bits set on aborts * negative exception priorities were being wrongly handled and four code cleanup patches, including one which is a change suggested in review of my last series which I forgot to make. thanks -- PMM Peter Maydell (7): target/arm: Use M_REG_NUM_BANKS rather than hardcoding 2 target/arm: Clear exclusive monitor on v7M reset, exception entry/exit target/arm: Get PRECISERR and IBUSERR the right way round nvic: Don't apply group priority mask to negative priorities target/arm: Remove unnecessary '| 0xf0000000' from do_v7m_exception_exit() target/arm: Add and use defines for EXCRET constants target/arm: Rename 'type' to 'excret' in do_v7m_exception_exit() target/arm/cpu.h | 35 +++++++++++++++++++---------------- target/arm/internals.h | 20 ++++++++++++++++++++ hw/intc/armv7m_nvic.c | 11 +++++++++-- target/arm/cpu.c | 6 ++++++ target/arm/helper.c | 43 +++++++++++++++++++++++++------------------ target/arm/op_helper.c | 2 +- 6 files changed, 80 insertions(+), 37 deletions(-) -- 2.7.4