From: Zephyr Li <fritchleybohrer@gmail.com>
To: qemu-devel@nongnu.org
Cc: qemu-riscv@nongnu.org, palmer@dabbelt.com,
alistair.francis@wdc.com, liwei1518@gmail.com,
zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com,
daniel.barboza@oss.qualcomm.com
Subject: [PATCH v2 0/5] target/riscv: Fix no-TCG build
Date: Tue, 26 May 2026 19:04:45 +0800 [thread overview]
Message-ID: <cover.1779792111.git.fritchleybohrer@gmail.com> (raw)
In-Reply-To: <20260526024454.2013810-1-fritchleybohrer@gmail.com>
This series fixes the riscv64-softmmu --disable-tcg build by keeping
TCG-only files and code out of no-TCG builds, while keeping common
helpers available for non-TCG configurations.
The first patches move common helpers out of TCG-only helper files. The
later patches reject x-misa-w when TCG is unavailable, provide a no-TCG
stub for riscv_cpu_validate_set_extensions(), and build RISC-V TCG-only
sources only when TCG is enabled.
Changes in v2:
- Split the original patch into smaller logical patches.
- Drop the unused tcg/tcg.h include.
- Add a no-TCG stub for riscv_cpu_validate_set_extensions().
- Keep x-misa-w rejected during CPU realize when TCG is unavailable.
Testing:
- riscv64-softmmu --enable-kvm --disable-tcg --enable-debug builds
successfully.
- riscv64-softmmu --enable-debug builds successfully.
- qemu-system-riscv64 -M virt,accel=qtest -cpu rv64,x-misa-w=true \
-S -nographic reports "x-misa-w requires TCG".
Zephyr Li (5):
target/riscv: Remove unused tcg/tcg.h include
target/riscv: Move fflags helpers to common code
target/riscv: Move riscv_raise_exception() to common code
target/riscv: Reject x-misa-w without TCG
target/riscv: Build TCG-only code only with TCG
target/riscv/cpu.c | 8 +++++-
target/riscv/cpu_helper.c | 53 ++++++++++++++++++++++++++++++++++++++
target/riscv/csr.c | 11 ++++++--
target/riscv/fpu_helper.c | 27 -------------------
target/riscv/meson.build | 9 ++++---
target/riscv/op_helper.c | 15 -----------
target/riscv/tcg/tcg-cpu.h | 10 +++++++
7 files changed, 85 insertions(+), 48 deletions(-)
--
2.43.0
next parent reply other threads:[~2026-05-26 11:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260526024454.2013810-1-fritchleybohrer@gmail.com>
2026-05-26 11:04 ` Zephyr Li [this message]
2026-05-26 11:04 ` [PATCH v2 1/5] target/riscv: Remove unused tcg/tcg.h include Zephyr Li
2026-05-26 12:10 ` Philippe Mathieu-Daudé
2026-05-26 23:52 ` Alistair Francis
2026-05-26 11:04 ` [PATCH v2 2/5] target/riscv: Move fflags helpers to common code Zephyr Li
2026-05-26 11:04 ` [PATCH v2 3/5] target/riscv: Move riscv_raise_exception() " Zephyr Li
2026-05-26 11:04 ` [PATCH v2 4/5] target/riscv: Reject x-misa-w without TCG Zephyr Li
2026-05-26 12:19 ` Philippe Mathieu-Daudé
2026-05-26 23:52 ` Alistair Francis
2026-05-27 2:51 ` Zephyr Li
2026-05-26 11:04 ` [PATCH v2 5/5] target/riscv: Build TCG-only code only with TCG Zephyr Li
2026-05-26 12:32 ` [PATCH v2 0/5] target/riscv: Fix no-TCG build Philippe Mathieu-Daudé
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=cover.1779792111.git.fritchleybohrer@gmail.com \
--to=fritchleybohrer@gmail.com \
--cc=alistair.francis@wdc.com \
--cc=chao.liu.zevorn@gmail.com \
--cc=daniel.barboza@oss.qualcomm.com \
--cc=liwei1518@gmail.com \
--cc=palmer@dabbelt.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=zhiwei_liu@linux.alibaba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.