From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: jim@groklearning.com, Joel Stanley <joel@jms.id.au>,
Peter Maydell <peter.maydell@linaro.org>,
Subbaraya Sundeep <sundeep.lkml@gmail.com>,
qemu-arm@nongnu.org, jusual@mail.ru,
Alistair Francis <alistair@alistair23.me>,
mail@steffen-goertz.de, ilg@livius.net,
Su Hang <suhang16@mails.ucas.ac.cn>,
Steffen Gortz <qemu.ml@steffen-goertz.de>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: [Qemu-devel] [PATCH v4 0/6] arm: add Cortex M0 CPU model and hex file loader
Date: Fri, 3 Aug 2018 15:47:15 +0100 [thread overview]
Message-ID: <20180803144721.17036-1-stefanha@redhat.com> (raw)
v4:
* Drop ARMv7MState to ARMMProfileState rename because it causes a lot of code
churn and is incomplete. Other parts of QEMU (like NVIC emulation) still
refer to "v7m" although they apply to other architecture versions too.
[Peter]
* Use the generic loader device (-device loader,file=program.hex,cpu-num=1)
instead of -kernel. -kernel is a legacy command-line option that is kept as
a convenience, but it's not as flexible or predictable as the generic loader
device. New image formats should be added to the generic loader device.
[Peter]
* Use hex/ASCII literals instead of decimal literals in hexloader-test.c.
This makes the test case slightly easier to understand. [Philippe]
v3:
* Rename ARMv7MState to ARMMProfileState so a single class can cater for
ARMv6-M, ARMv7-M, and ARMv8-M [Peter]
* Make bitbanding optional via a qdev property [Peter]
* Add hex file loader patches to reduce dependencies in upcoming patch series
* Implement rollback if hex file loader fails partway through [Peter]
* Update hex file loader test case to use an ARMv7-M board since hex file
loading is only done for ARM M Profile boards
This series contains the prerequistes for the "microbit" machine type that Joel
Stanley has written. I have combined the Cortex M0 CPU model and hex loader
work into one series to reduce the dependencies in upcoming patch series from
Joel, Julia, and Steffen.
This patch series:
* Makes bitbanding optional on ARMv7MState.
* Adds a "cortex-m0" cpu type which can be used with ARMMProfileState. This
works thanks to Julia's Cortex M0 emulation patches, which are now all
merged.
* Adds Su Hang's Intel HEX file format loader so that micro:bit and other
microcontroller firmware images can be run using -kernel. The micro:bit
development tools typically only emit .hex files and not ELFs.
Stefan Hajnoczi (4):
hw/arm: make bitbanded IO optional on ARMv7-M
target/arm: add "cortex-m0" CPU model
loader: extract rom_free() function
loader: add rom transaction API
Su Hang (2):
loader: Implement .hex file loader
Add QTest testcase for the Intel Hexadecimal
MAINTAINERS | 6 +
configure | 4 +
tests/Makefile.include | 2 +
include/hw/arm/armv7m.h | 2 +
include/hw/loader.h | 31 +++
hw/arm/armv7m.c | 37 ++--
hw/arm/mps2.c | 1 +
hw/arm/msf2-soc.c | 1 +
hw/arm/stellaris.c | 1 +
hw/arm/stm32f205_soc.c | 1 +
hw/core/generic-loader.c | 4 +
hw/core/loader.c | 296 ++++++++++++++++++++++++++-
target/arm/cpu.c | 11 +
tests/hexloader-test.c | 60 ++++++
tests/hex-loader-check-data/test.hex | 12 ++
15 files changed, 443 insertions(+), 26 deletions(-)
create mode 100644 tests/hexloader-test.c
create mode 100644 tests/hex-loader-check-data/test.hex
--
2.17.1
next reply other threads:[~2018-08-03 14:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 14:47 Stefan Hajnoczi [this message]
2018-08-03 14:47 ` [Qemu-devel] [PATCH v4 1/6] hw/arm: make bitbanded IO optional on ARMv7-M Stefan Hajnoczi
2018-08-10 3:31 ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-08-03 14:47 ` [Qemu-devel] [PATCH v4 2/6] target/arm: add "cortex-m0" CPU model Stefan Hajnoczi
2018-08-10 3:38 ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-08-03 14:47 ` [Qemu-devel] [PATCH v4 3/6] loader: extract rom_free() function Stefan Hajnoczi
2018-08-08 21:32 ` Alistair Francis
2018-08-10 3:39 ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-08-03 14:47 ` [Qemu-devel] [PATCH v4 4/6] loader: add rom transaction API Stefan Hajnoczi
2018-08-08 21:31 ` Alistair Francis
2018-08-13 9:58 ` Stefan Hajnoczi
2018-08-03 14:47 ` [Qemu-devel] [PATCH v4 5/6] loader: Implement .hex file loader Stefan Hajnoczi
2018-08-10 5:00 ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-08-10 10:25 ` sail darcy
2018-08-13 15:56 ` Stefan Hajnoczi
2018-08-15 14:18 ` Philippe Mathieu-Daudé
2018-08-15 17:52 ` Stefan Hajnoczi
2018-08-16 16:10 ` Philippe Mathieu-Daudé
2018-08-03 14:47 ` [Qemu-devel] [PATCH v4 6/6] Add QTest testcase for the Intel Hexadecimal Stefan Hajnoczi
2018-08-10 4:26 ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-08-13 18:49 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180803144721.17036-1-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=alistair@alistair23.me \
--cc=ilg@livius.net \
--cc=jim@groklearning.com \
--cc=joel@jms.id.au \
--cc=jusual@mail.ru \
--cc=mail@steffen-goertz.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu.ml@steffen-goertz.de \
--cc=suhang16@mails.ucas.ac.cn \
--cc=sundeep.lkml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).