[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/4] RISCVCPUConfig related cleanups

From: liweiwei
Subject: Re: [PATCH 0/4] RISCVCPUConfig related cleanups
Date: Sat, 25 Feb 2023 14:47:15 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2023/2/25 01:45, Daniel Henrique Barboza wrote:

These cleanups were suggested by LIU Zhiwei during the review of the
RISCV_FEATURE_* cleanups, currently on version 7 [1].

These are dependent on the patch "[PATCH v7 01/10] target/riscv: introduce
riscv_cpu_cfg()" from [1] because we use the riscv_cpu_cfg() API.

[1] https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg06467.html

Daniel Henrique Barboza (4):
   target/riscv/csr.c: use env_archcpu() in ctr()
   target/riscv/csr.c: simplify mctr()
   target/riscv/csr.c: use riscv_cpu_cfg() to avoid env_cpu() pointers
   target/riscv/csr.c: avoid env_archcpu() usages when reading

  target/riscv/csr.c | 90 +++++++++++++---------------------------------
  1 file changed, 24 insertions(+), 66 deletions(-)

AsĀ  I suggested in another patch, cpu_get_cfg() can also be used in vector_helper.c.


Weiwei Li

reply via email to

[Prev in Thread] Current Thread [Next in Thread]