From patchwork Fri Jan 20 18:44:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 92101 Delivered-To: patches@linaro.org Received: by 10.182.3.34 with SMTP id 2csp196975obz; Fri, 20 Jan 2017 10:44:49 -0800 (PST) X-Received: by 10.99.126.27 with SMTP id z27mr18164758pgc.177.1484937889099; Fri, 20 Jan 2017 10:44:49 -0800 (PST) Return-Path: Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by mx.google.com with ESMTPS id f83si7579498pfd.13.2017.01.20.10.44.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 10:44:49 -0800 (PST) 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.84_2) (envelope-from ) id 1cUeB2-00046W-1v; Fri, 20 Jan 2017 18:44:44 +0000 From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: patches@linaro.org, Liviu Ionescu , Michael Davidsaver Subject: [PATCH 0/6] ARMv7M: some simple bugfixes and cleanups Date: Fri, 20 Jan 2017 18:44:37 +0000 Message-Id: <1484937883-1068-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 This set of six patches is some simple bug fixes which I've pulled out of Michael Davidsaver's old NVIC rewrite patchset, as an initial start on getting it upstream. None of them are particularly exciting, but they're self-contained so they might as well go through code review and get into master ahead of the main rewrite. NB the patch which pulls the FIELD macros out of register.h; they're too useful to be only accessible in softmmu builds. I've CC'd Michael as the original author and Liviu as somebody interested in v7M; if either of you would prefer not to be cc'd let me know and I'll leave you off subsequent respins and later NVIC related patchset emails. thanks -- PMM Michael Davidsaver (5): armv7m: MRS/MSR: handle unprivileged access armv7m: Replace armv7m.hack with unassigned_access handler armv7m: Explicit error for bad vector table armv7m: Fix reads of CONTROL register bit 1 armv7m: Clear FAULTMASK on return from non-NMI exceptions Peter Maydell (1): hw/registerfields.h: Pull FIELD etc macros out of hw/register.h include/hw/register.h | 47 +------------- include/hw/registerfields.h | 60 ++++++++++++++++++ target/arm/cpu.h | 1 - target/arm/internals.h | 7 +++ hw/arm/armv7m.c | 8 --- target/arm/cpu.c | 28 +++++++++ target/arm/helper.c | 147 +++++++++++++++++++++++++++----------------- target/arm/machine.c | 6 +- target/arm/translate.c | 12 ++-- 9 files changed, 195 insertions(+), 121 deletions(-) create mode 100644 include/hw/registerfields.h -- 2.7.4