From: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
To: qemu-devel@nongnu.org
Cc: qemu-riscv@nongnu.org, palmer@dabbelt.com,
Alistair.Francis@wdc.com, dbarboza@ventanamicro.com,
bmeng.cn@gmail.com, iwei1518@gmail.com,
zhiwei_liu@linux.alibaba.com
Subject: [PATCH 0/4] target/riscv: Implement May-Be-Operations(zimop) extension
Date: Wed, 22 May 2024 14:29:01 +0800 [thread overview]
Message-ID: <20240522062905.1799-1-zhiwei_liu@linux.alibaba.com> (raw)
The may be operation means that it has an initial behavior which can be redefined
by later extensions to perform some other action.
The May-Be-Operations includes two extension: zimop and zcmop. Zimop has 40
instructions, whose initial behavior is writing zero to the destination register.
Zcmop, which requires the Zca extension, has 8 instructions whose initial
behavior is reading the source register.
The more details on this specifcation is here:
https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc
LIU Zhiwei (4):
target/riscv: Add zimop extension
disas/riscv: Support zimop disassemble
target/riscv: Add zcmop extension
disas/riscv: Support zcmop disassemble
disas/riscv.c | 123 ++++++++++++++++++++
target/riscv/cpu.c | 4 +
target/riscv/cpu_cfg.h | 2 +
target/riscv/insn16.decode | 1 +
target/riscv/insn32.decode | 11 ++
target/riscv/insn_trans/trans_rvzcmop.c.inc | 29 +++++
target/riscv/insn_trans/trans_rvzimop.c.inc | 37 ++++++
target/riscv/tcg/tcg-cpu.c | 5 +
target/riscv/translate.c | 2 +
9 files changed, 214 insertions(+)
create mode 100644 target/riscv/insn_trans/trans_rvzcmop.c.inc
create mode 100644 target/riscv/insn_trans/trans_rvzimop.c.inc
--
2.25.1
next reply other threads:[~2024-05-22 6:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 6:29 LIU Zhiwei [this message]
2024-05-22 6:29 ` [PATCH 1/4] target/riscv: Add zimop extension LIU Zhiwei
2024-05-24 9:46 ` Daniel Henrique Barboza
2024-05-26 0:32 ` LIU Zhiwei
2024-06-04 2:19 ` Alistair Francis
2024-05-22 6:29 ` [PATCH 2/4] disas/riscv: Support zimop disassemble LIU Zhiwei
2024-06-04 2:21 ` Alistair Francis
2024-05-22 6:29 ` [PATCH 3/4] target/riscv: Add zcmop extension LIU Zhiwei
2024-05-24 9:48 ` Daniel Henrique Barboza
2024-06-04 2:23 ` Alistair Francis
2024-05-22 6:29 ` [PATCH 4/4] disas/riscv: Support zcmop disassemble LIU Zhiwei
2024-06-04 2:23 ` Alistair Francis
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=20240522062905.1799-1-zhiwei_liu@linux.alibaba.com \
--to=zhiwei_liu@linux.alibaba.com \
--cc=Alistair.Francis@wdc.com \
--cc=bmeng.cn@gmail.com \
--cc=dbarboza@ventanamicro.com \
--cc=iwei1518@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 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).