From: Anton Johansson via <qemu-devel@nongnu.org>
To: qemu-devel@nongnu.org
Cc: ale@rev.ng, tsimpson@quicinc.com, bcain@quicinc.com,
mlambert@quicinc.com, babush@rev.ng, nizzo@rev.ng,
richard.henderson@linaro.org
Subject: [PATCH v8 00/12] target/hexagon: introduce idef-parser
Date: Wed, 9 Feb 2022 18:03:00 +0100 [thread overview]
Message-ID: <20220209170312.30662-1-anjo@rev.ng> (raw)
This patchset introduces the idef-parser for target/hexagon.
It's the eight iteration of the patchset and includes fixes suggested in
previous iterations.
`idef-parser` is a build-time tool built using flex and bison. Its aim
is to generate a large part of the tiny code generator frontend for
Hexagon. The prototype of idef-parser has been presented at KVM Forum
2019 ("QEMU-Hexagon: Automatic Translation of the ISA Manual Pseudocode
to Tiny Code Instructions"):
https://www.youtube.com/watch?v=3EpnTYBOXCI
`target/hexagon/idef-parser/README.rst` provides an overview of the
parser and its inner working.
A couple of notes:
* These commits build successfully on the CI (including using clang),
with one notable exception. Presently, the `build-user-hexagon` job
fails due to not being able to find `flex`. We believe this to be
caused by `debian-hexagon-cross` not being built by the CI.
As such the `debian-hexagon-cross` container will have to be manually
rebuilt before merging.
* The eight patch, which introduces flex and bison as new build pre-
requisites using `libvirt-ci` currently points to a fork, not yet
merged upstream. This will have to be corrected before the final
version of the patchset.
Alessandro Di Federico (4):
target/hexagon: update MAINTAINERS for idef-parser
target/hexagon: import README for idef-parser
target/hexagon: prepare input for the idef-parser
target/hexagon: call idef-parser functions
Anton Johansson (2):
target/hexagon: import flex/bison to docker files
target/hexagon: import parser for idef-parser
Niccolò Izzo (2):
target/hexagon: introduce new helper functions
target/hexagon: import additional tests
Paolo Montesel (4):
target/hexagon: make slot number an unsigned
target/hexagon: make helper functions non-static
target/hexagon: expose next PC in DisasContext
target/hexagon: import lexer for idef-parser
.gitlab-ci.d/cirrus/freebsd-12.vars | 2 +-
.gitlab-ci.d/cirrus/freebsd-13.vars | 2 +-
.gitlab-ci.d/windows.yml | 2 +
.gitmodules | 3 +-
MAINTAINERS | 9 +
meson_options.txt | 3 +
target/hexagon/README | 5 +
target/hexagon/gen_helper_funcs.py | 17 +-
target/hexagon/gen_helper_protos.py | 17 +-
target/hexagon/gen_idef_parser_funcs.py | 125 +
target/hexagon/gen_tcg_funcs.py | 41 +-
target/hexagon/genptr.c | 230 +-
target/hexagon/genptr.h | 44 +
target/hexagon/hex_common.py | 10 +
target/hexagon/idef-parser/README.rst | 722 +++++
target/hexagon/idef-parser/idef-parser.h | 254 ++
target/hexagon/idef-parser/idef-parser.lex | 566 ++++
target/hexagon/idef-parser/idef-parser.y | 1039 +++++++
target/hexagon/idef-parser/macros.inc | 140 +
target/hexagon/idef-parser/parser-helpers.c | 2551 +++++++++++++++++
target/hexagon/idef-parser/parser-helpers.h | 375 +++
target/hexagon/idef-parser/prepare | 24 +
target/hexagon/macros.h | 11 +-
target/hexagon/meson.build | 138 +-
target/hexagon/op_helper.c | 29 +-
target/hexagon/op_helper.h | 37 +
target/hexagon/translate.c | 3 +-
target/hexagon/translate.h | 1 +
tests/docker/dockerfiles/alpine.docker | 5 +-
tests/docker/dockerfiles/centos8.docker | 7 +-
tests/docker/dockerfiles/debian-amd64.docker | 2 +
tests/docker/dockerfiles/debian-native.docker | 3 +
.../dockerfiles/debian-riscv64-cross.docker | 3 +
.../dockerfiles/debian-tricore-cross.docker | 1 +
tests/docker/dockerfiles/debian10.docker | 3 +
.../dockerfiles/fedora-i386-cross.docker | 3 +
.../dockerfiles/fedora-win32-cross.docker | 3 +
.../dockerfiles/fedora-win64-cross.docker | 3 +
tests/docker/dockerfiles/fedora.docker | 5 +-
tests/docker/dockerfiles/opensuse-leap.docker | 7 +-
tests/docker/dockerfiles/ubuntu1804.docker | 7 +-
tests/docker/dockerfiles/ubuntu2004.docker | 7 +-
tests/lcitool/libvirt-ci | 2 +-
tests/lcitool/projects/qemu.yml | 2 +
tests/lcitool/refresh | 2 +-
tests/tcg/hexagon/Makefile.target | 28 +-
tests/tcg/hexagon/crt.S | 14 +
tests/tcg/hexagon/test_abs.S | 17 +
tests/tcg/hexagon/test_bitcnt.S | 40 +
tests/tcg/hexagon/test_bitsplit.S | 22 +
tests/tcg/hexagon/test_call.S | 64 +
tests/tcg/hexagon/test_clobber.S | 29 +
tests/tcg/hexagon/test_cmp.S | 31 +
tests/tcg/hexagon/test_dotnew.S | 38 +
tests/tcg/hexagon/test_ext.S | 13 +
tests/tcg/hexagon/test_fibonacci.S | 30 +
tests/tcg/hexagon/test_hl.S | 16 +
tests/tcg/hexagon/test_hwloops.S | 19 +
tests/tcg/hexagon/test_jmp.S | 22 +
tests/tcg/hexagon/test_lsr.S | 36 +
tests/tcg/hexagon/test_mpyi.S | 17 +
tests/tcg/hexagon/test_packet.S | 29 +
tests/tcg/hexagon/test_reorder.S | 33 +
tests/tcg/hexagon/test_round.S | 29 +
tests/tcg/hexagon/test_vavgw.S | 31 +
tests/tcg/hexagon/test_vcmpb.S | 30 +
tests/tcg/hexagon/test_vcmpw.S | 30 +
tests/tcg/hexagon/test_vlsrw.S | 20 +
tests/tcg/hexagon/test_vmaxh.S | 35 +
tests/tcg/hexagon/test_vminh.S | 35 +
tests/tcg/hexagon/test_vpmpyh.S | 28 +
tests/tcg/hexagon/test_vspliceb.S | 31 +
72 files changed, 7125 insertions(+), 107 deletions(-)
create mode 100644 target/hexagon/gen_idef_parser_funcs.py
create mode 100644 target/hexagon/idef-parser/README.rst
create mode 100644 target/hexagon/idef-parser/idef-parser.h
create mode 100644 target/hexagon/idef-parser/idef-parser.lex
create mode 100644 target/hexagon/idef-parser/idef-parser.y
create mode 100644 target/hexagon/idef-parser/macros.inc
create mode 100644 target/hexagon/idef-parser/parser-helpers.c
create mode 100644 target/hexagon/idef-parser/parser-helpers.h
create mode 100755 target/hexagon/idef-parser/prepare
create mode 100644 target/hexagon/op_helper.h
create mode 100644 tests/tcg/hexagon/crt.S
create mode 100644 tests/tcg/hexagon/test_abs.S
create mode 100644 tests/tcg/hexagon/test_bitcnt.S
create mode 100644 tests/tcg/hexagon/test_bitsplit.S
create mode 100644 tests/tcg/hexagon/test_call.S
create mode 100644 tests/tcg/hexagon/test_clobber.S
create mode 100644 tests/tcg/hexagon/test_cmp.S
create mode 100644 tests/tcg/hexagon/test_dotnew.S
create mode 100644 tests/tcg/hexagon/test_ext.S
create mode 100644 tests/tcg/hexagon/test_fibonacci.S
create mode 100644 tests/tcg/hexagon/test_hl.S
create mode 100644 tests/tcg/hexagon/test_hwloops.S
create mode 100644 tests/tcg/hexagon/test_jmp.S
create mode 100644 tests/tcg/hexagon/test_lsr.S
create mode 100644 tests/tcg/hexagon/test_mpyi.S
create mode 100644 tests/tcg/hexagon/test_packet.S
create mode 100644 tests/tcg/hexagon/test_reorder.S
create mode 100644 tests/tcg/hexagon/test_round.S
create mode 100644 tests/tcg/hexagon/test_vavgw.S
create mode 100644 tests/tcg/hexagon/test_vcmpb.S
create mode 100644 tests/tcg/hexagon/test_vcmpw.S
create mode 100644 tests/tcg/hexagon/test_vlsrw.S
create mode 100644 tests/tcg/hexagon/test_vmaxh.S
create mode 100644 tests/tcg/hexagon/test_vminh.S
create mode 100644 tests/tcg/hexagon/test_vpmpyh.S
create mode 100644 tests/tcg/hexagon/test_vspliceb.S
--
2.34.1
next reply other threads:[~2022-02-09 17:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 17:03 Anton Johansson via [this message]
2022-02-09 17:03 ` [PATCH v8 01/12] target/hexagon: update MAINTAINERS for idef-parser Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 02/12] target/hexagon: import README " Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 03/12] target/hexagon: make slot number an unsigned Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 04/12] target/hexagon: make helper functions non-static Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 05/12] target/hexagon: introduce new helper functions Anton Johansson via
2022-03-21 18:28 ` Taylor Simpson
2022-02-09 17:03 ` [PATCH v8 06/12] target/hexagon: expose next PC in DisasContext Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 07/12] target/hexagon: prepare input for the idef-parser Anton Johansson via
2022-03-21 18:33 ` Taylor Simpson
2022-02-09 17:03 ` [PATCH v8 08/12] target/hexagon: import flex/bison to docker files Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 09/12] target/hexagon: import lexer for idef-parser Anton Johansson via
2022-03-21 18:40 ` Taylor Simpson
2022-02-09 17:03 ` [PATCH v8 10/12] target/hexagon: import parser " Anton Johansson via
2022-04-11 15:20 ` Taylor Simpson
2022-04-12 15:10 ` Anton Johansson via
2022-04-12 18:41 ` Taylor Simpson
2022-04-21 11:50 ` Anton Johansson via
2022-04-21 14:22 ` Taylor Simpson
2022-04-21 16:38 ` Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 11/12] target/hexagon: call idef-parser functions Anton Johansson via
2022-02-09 17:03 ` [PATCH v8 12/12] target/hexagon: import additional tests Anton Johansson via
2022-03-21 18:58 ` Taylor Simpson
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=20220209170312.30662-1-anjo@rev.ng \
--to=qemu-devel@nongnu.org \
--cc=ale@rev.ng \
--cc=anjo@rev.ng \
--cc=babush@rev.ng \
--cc=bcain@quicinc.com \
--cc=mlambert@quicinc.com \
--cc=nizzo@rev.ng \
--cc=richard.henderson@linaro.org \
--cc=tsimpson@quicinc.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).