Support disabling TCG on ARM
v5 cover Support disabling TCG on ARM
v1 cover from Samuel [1]:
This patchset allows for building and running ARM targets with TCG disabled. It splits the target/arm/helper.c file into logical TCG and non TCG dependent files so that one can build and run QEMU binaries with or without TCG enabled.
The rationale behind this work comes from the NEMU project where we're trying to only support x86 and ARM 64-bit architectures, without including the TCG code base. We can only do so if we can build and run ARM binaries with TCG disabled.
v2: https://lists.gnu.org/archive/html/qemu-devel/2019-06/msg03271.html
v3: https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg00162.html
v4: https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg00312.html
- patches 1-12, 14-17, 19-21 accepted, rebased on target-arm.next
- addressed Peter's comment (described in each patch).
v5:
- patches 1-2 accepted, rebased on target-arm.next
- addressed Peter's comment (broken v4 rebase, patch not building...)
Based-on: target-arm.next
$ git backport-diff -u v3 -r target-arm.next..v5 Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively
001/1:[0025] [FC] 'target/arm/helper: Move M profile routines to m_helper.c'
Thanks a lot to Alex and Peter for their review time, and Samuel for the original effort.
This single patch is not a 'bugfix', simply code movement. If it doesn't fit for 4.1-rc0, I'm still glad Peter merged all the patches from the previous series :_
Regards,
Phil.
[1]: https://lists.gnu.org/archive/html/qemu-devel/2018-11/msg02451.html
Philippe Mathieu-Daudé (1):
target/arm/helper: Move M profile routines to m_helper.c
target/arm/Makefile.objs | 1 + target/arm/helper.c | 2638 +------------------------------------ target/arm/m_helper.c | 2676 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 2681 insertions(+), 2634 deletions(-) create mode 100644 target/arm/m_helper.c
Signature · 1 line
2.20.1
PATCH v5 1/1 target/arm/helper: Move M profile routines to m_helper.c
In preparation for supporting TCG disablement on ARM, we move most of TCG related v7m/v8m helpers and APIs into their own file.
Note: It is easier to review this commit using the 'histogram'
diff algorithm:
$ git diff --diff-algorithm=histogram ...
or
$ git diff --histogram ...
---
patch generated with git diff --histogram.
v4: rebased
v5:
- compile m_helper.o inconditionally (Kconfig change missing)
- keep arm_cpu_get_phys_page_attrs_debug (incorrectly rebased)
--- target/arm/Makefile.objs | 1 + target/arm/helper.c | 2638 +------------------------------------ target/arm/m_helper.c | 2676 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 2681 insertions(+), 2634 deletions(-) create mode 100644 target/arm/m_helper.c
target/arm/Makefile.objs +1 -0
@@ -36,6 +36,7 @@ obj-y += tlb_helper.o debug_helper.o obj-y += translate.o op_helper.o obj-y += crypto_helper.o obj-y += iwmmxt_helper.o vec_helper.o neon_helper.o +obj-y += m_helper.o obj-$(CONFIG_SOFTMMU) += psci.o
target/arm/helper.c +4 -2634
2,677 lines not on this page · raw message
target/arm/m_helper.c new file +2676 -0
316 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.20.1
Part of the diff is not shown here. View the raw message.