All of lore.kernel.org
 help / color / mirror / Atom feed
From: wangyang25@otcaix.iscas.ac.cn
To: qemu-devel@nongnu.org
Cc: qemu-riscv@nongnu.org, palmer@dabbelt.com,
	alistair.francis@wdc.com, liwei1518@gmail.com,
	daniel.barboza@oss.qualcomm.com, zhiwei_liu@linux.alibaba.com,
	chao.liu@processmission.com
Subject: [PATCH 0/5] target/riscv: fix CFI and envcfg CSR handling
Date: 23 Aug 2026 21:14:35 +0800	[thread overview]
Message-ID: <cover.1787489230.git.wangyang25@otcaix.iscas.ac.cn> (raw)

This series fixes five independent RISC-V CSR and trap-handling defects.

The patches cover:

 - making mnstatus.MNPELP writable when Zicfilp is implemented;
 - saving ELP in mstatus.MPELP for M-mode RNMI exceptions;
 - masking inactive senvcfg.SSE on readback;
 - gating envcfg CBO fields on Zicbom and Zicboz;
 - enforcing menvcfg.SSE precedence for ssp CSR access.

Each patch includes a corresponding GitLab Work Item and a Signed-off-by
line. The reports were found with an automated differential/emulation tool
and manually triaged against QEMU master eea8fe61b8be.

The witness families were rerun on the Linux x86_64 execution plane. The
patches apply cleanly and pass git diff --check and checkpatch.pl with zero
errors and zero warnings.

wangyang (5):
  target/riscv: make mnstatus.MNPELP writable with Zicfilp
  target/riscv: save ELP in MPELP for RNMI exceptions
  target/riscv: mask inactive senvcfg.SSE on read
  target/riscv: gate envcfg CBO fields on extensions
  target/riscv: enforce SSE precedence for ssp CSR access

 target/riscv/tcg/cpu_helper.c |  7 +---
 target/riscv/tcg/csr.c        | 79 +++++++++++++++++++++++++++++++----
 2 files changed, 71 insertions(+), 15 deletions(-)

-- 
2.55.0.windows.2

             reply	other threads:[~2026-08-23 13:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-23 13:14 wangyang25 [this message]
2026-08-23 13:14 ` [PATCH 4/5] target/riscv: gate envcfg CBO fields on extensions wangyang25
2026-09-03  5:23   ` Alistair Francis
2026-08-23 13:14 ` [PATCH 3/5] target/riscv: mask inactive senvcfg.SSE on read wangyang25
2026-08-23 13:14 ` [PATCH 2/5] target/riscv: save ELP in MPELP for RNMI exceptions wangyang25
2026-09-03  5:46   ` Alistair Francis
2026-09-03  7:54     ` Wang Yang
2026-08-23 13:14 ` [PATCH 1/5] target/riscv: make mnstatus.MNPELP writable with Zicfilp wangyang25
2026-09-03  5:40   ` Alistair Francis
2026-08-23 13:14 ` [PATCH 5/5] target/riscv: enforce SSE precedence for ssp CSR access wangyang25

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.1787489230.git.wangyang25@otcaix.iscas.ac.cn \
    --to=wangyang25@otcaix.iscas.ac.cn \
    --cc=alistair.francis@wdc.com \
    --cc=chao.liu@processmission.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.