From: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
To: Daniel Henrique Barboza <dbarboza@ventanamicro.com>,
qemu-devel@nongnu.org
Cc: qemu-riscv@nongnu.org, palmer@dabbelt.com,
Alistair.Francis@wdc.com, bmeng.cn@gmail.com,
liwei1518@gmail.com
Subject: Re: [PATCH 0/6] target/riscv: Support Zabha extension
Date: Sun, 26 May 2024 08:37:48 +0800 [thread overview]
Message-ID: <fed99165-58da-458c-b68f-a9717fc15034@linux.alibaba.com> (raw)
In-Reply-To: <8cc80b22-d159-4c8a-8860-30d229bae8d6@ventanamicro.com>
On 2024/5/24 19:44, Daniel Henrique Barboza wrote:
> Hi Zhiwei!
>
>
>
> On 5/23/24 09:40, LIU Zhiwei wrote:
>> Zabha adds support AMO operations for byte and half word. If zacas
>> has been implemented,
>> zabha also adds support amocas.b and amocas.h.
>>
>> More details is on the specification here:
>> https://github.com/riscv/riscv-zabha
>>
>> The implemenation of zabha follows the way of AMOs and zacas.
>>
>> This patch set is based on these two patch set:
>> 1. https://mail.gnu.org/archive/html/qemu-riscv/2024-05/msg00207.html
>> 2. https://mail.gnu.org/archive/html/qemu-riscv/2024-05/msg00212.html
>
> These 2 series doesn't seem to apply on top of each other, doesn't
> matter which
> order I try. Applying zimop/zcmop first, then zama16b:
>
> $ git am \[PATCH\ 1_1\]\ target_riscv\:\ Support\ Zama16b\ extension\
> -\ LIU\ Zhiwei\ \<zhiwei_liu@linux.alibaba.com\>\ -\ 2024-05-22\ 0613.eml
> Applying: target/riscv: Support Zama16b extension
> error: patch failed: target/riscv/cpu.c:1464
> error: target/riscv/cpu.c: patch does not apply
> Patch failed at 0001 target/riscv: Support Zama16b extension
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
>
>
> Applying zama16b first, then zimop/zcmop:
>
> $ git am \[PATCH\ 1_1\]\ target_riscv\:\ Support\ Zama16b\ extension\
> -\ LIU\ Zhiwei\ \<zhiwei_liu@linux.alibaba.com\>\ -\ 2024-05-22\ 0613.eml
> Applying: target/riscv: Support Zama16b extension
> $
> $ git am \[PATCH\ 1_4\]\ target_riscv\:\ Add\ zimop\ extension\ -\
> LIU\ Zhiwei\ \<zhiwei_liu@linux.alibaba.com\>\ -\ 2024-05-22\ 0329.eml
> \[PATCH\ 2_4\]\ disas_riscv\:\ Support\ zimop\ disassemble\ -\ LIU\
> Zhiwei\ \<zhiwei_liu@linux.alibaba.com\>\ -\ 2024-05-22\ 0329.eml
> Applying: target/riscv: Add zimop extension
> error: patch failed: target/riscv/cpu.c:1463
> error: target/riscv/cpu.c: patch does not apply
> Patch failed at 0001 target/riscv: Add zimop extension
>
>
> If the series are dependent on each other perhaps it's easier to send
> everything
> in a single 11 patches series.
They don't have dependency on each other. But if we both rebase them to
the master branch, they
couldn't be merged at the time, as them both modify cpu.h and cpu.c in
the same place.
I will send them as a whole patch set(RVA23 patch set) after I fix other
issues on implementing the RVA23 profile.
Thanks,
Zhiwei
>
>
> Thanks,
>
> Daniel
>
>>
>>
>> LIU Zhiwei (6):
>> target/riscv: Move gen_amo before implement Zabha
>> target/riscv: Add AMO instructions for Zabha
>> target/riscv: Move gen_cmpxchg before adding amocas.[b|h]
>> target/riscv: Add amocas.[b|h] for Zabha
>> target/riscv: Enable zabha for max cpu
>> disas/riscv: Support zabha disassemble
>>
>> disas/riscv.c | 60 ++++++++
>> target/riscv/cpu.c | 2 +
>> target/riscv/cpu_cfg.h | 1 +
>> target/riscv/insn32.decode | 22 +++
>> target/riscv/insn_trans/trans_rva.c.inc | 21 ---
>> target/riscv/insn_trans/trans_rvzabha.c.inc | 145 ++++++++++++++++++++
>> target/riscv/insn_trans/trans_rvzacas.c.inc | 13 --
>> target/riscv/translate.c | 36 +++++
>> 8 files changed, 266 insertions(+), 34 deletions(-)
>> create mode 100644 target/riscv/insn_trans/trans_rvzabha.c.inc
>>
next prev parent reply other threads:[~2024-05-26 0:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 12:40 [PATCH 0/6] target/riscv: Support Zabha extension LIU Zhiwei
2024-05-23 12:40 ` [PATCH 1/6] target/riscv: Move gen_amo before implement Zabha LIU Zhiwei
2024-06-04 2:25 ` Alistair Francis
2024-05-23 12:40 ` [PATCH 2/6] target/riscv: Add AMO instructions for Zabha LIU Zhiwei
2024-06-04 3:09 ` Alistair Francis
2024-05-23 12:40 ` [PATCH 3/6] target/riscv: Move gen_cmpxchg before adding amocas.[b|h] LIU Zhiwei
2024-06-04 3:15 ` Alistair Francis
2024-05-23 12:40 ` [PATCH 4/6] target/riscv: Add amocas.[b|h] for Zabha LIU Zhiwei
2024-06-04 3:17 ` Alistair Francis
2024-05-23 12:40 ` [PATCH 5/6] target/riscv: Enable zabha for max cpu LIU Zhiwei
2024-05-24 11:38 ` Daniel Henrique Barboza
2024-05-23 12:40 ` [PATCH 6/6] disas/riscv: Support zabha disassemble LIU Zhiwei
2024-06-04 3:18 ` Alistair Francis
2024-05-24 11:44 ` [PATCH 0/6] target/riscv: Support Zabha extension Daniel Henrique Barboza
2024-05-26 0:37 ` LIU Zhiwei [this message]
2024-05-26 17:16 ` Daniel Henrique Barboza
2024-05-27 1:52 ` LIU Zhiwei
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=fed99165-58da-458c-b68f-a9717fc15034@linux.alibaba.com \
--to=zhiwei_liu@linux.alibaba.com \
--cc=Alistair.Francis@wdc.com \
--cc=bmeng.cn@gmail.com \
--cc=dbarboza@ventanamicro.com \
--cc=liwei1518@gmail.com \
--cc=palmer@dabbelt.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
/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.