qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] riscv: zicond: make non-experimental
@ 2023-08-08 18:17 Vineet Gupta
  2023-08-08 18:17 ` [PATCH 2/2] riscv: zicond: make default Vineet Gupta
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Vineet Gupta @ 2023-08-08 18:17 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: kito.cheng, Jeff Law, Palmer Dabbelt, Vineet Gupta

zicond is now codegen supported in both llvm and gcc.

This change allows seamless enabling/testing of zicond in downstream
projects. e.g. currently riscv-gnu-toolchain parses elf attributes
to create a cmdline for qemu but fails short of enabling it because of
the "x-" prefix.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
---
 target/riscv/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 6b93b04453c8..022bd9d01223 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -1816,6 +1816,7 @@ static Property riscv_cpu_extensions[] = {
     DEFINE_PROP_BOOL("zcf", RISCVCPU, cfg.ext_zcf, false),
     DEFINE_PROP_BOOL("zcmp", RISCVCPU, cfg.ext_zcmp, false),
     DEFINE_PROP_BOOL("zcmt", RISCVCPU, cfg.ext_zcmt, false),
+    DEFINE_PROP_BOOL("zicond", RISCVCPU, cfg.ext_zicond, false),
 
     /* Vendor-specific custom extensions */
     DEFINE_PROP_BOOL("xtheadba", RISCVCPU, cfg.ext_xtheadba, false),
@@ -1832,7 +1833,6 @@ static Property riscv_cpu_extensions[] = {
     DEFINE_PROP_BOOL("xventanacondops", RISCVCPU, cfg.ext_XVentanaCondOps, false),
 
     /* These are experimental so mark with 'x-' */
-    DEFINE_PROP_BOOL("x-zicond", RISCVCPU, cfg.ext_zicond, false),
 
     /* ePMP 0.9.3 */
     DEFINE_PROP_BOOL("x-epmp", RISCVCPU, cfg.epmp, false),
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-10-16  7:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 18:17 [PATCH 1/2] riscv: zicond: make non-experimental Vineet Gupta
2023-08-08 18:17 ` [PATCH 2/2] riscv: zicond: make default Vineet Gupta
2023-08-08 21:06   ` Daniel Henrique Barboza
2023-08-08 22:10     ` Vineet Gupta
2023-08-10 18:07       ` Alistair Francis
2023-08-11  7:01         ` Andrew Jones
2023-10-16  5:39           ` Alistair Francis
2023-10-16  7:43             ` Andrew Jones
2023-08-11 11:22         ` Daniel Henrique Barboza
2023-08-08 18:29 ` [PATCH 1/2] riscv: zicond: make non-experimental Richard Henderson
2023-08-08 18:45   ` Vineet Gupta
2023-08-08 20:52     ` Palmer Dabbelt
2023-08-08 21:10       ` Daniel Henrique Barboza
2023-08-08 21:15         ` Palmer Dabbelt
2023-08-10 17:13           ` Alistair Francis
2023-08-10 17:14 ` Alistair Francis
2023-08-25  5:28   ` Vineet Gupta
2023-09-01  2:20 ` Alistair Francis

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).