* [PATCH RESEND 3/3] riscv: override machine_args only when default
@ 2025-05-28 17:47 uk7b
0 siblings, 0 replies; only message in thread
From: uk7b @ 2025-05-28 17:47 UTC (permalink / raw)
To: dev; +Cc: sunyuechi, Stanislaw Kardach, Bruce Richardson
From: sunyuechi <sunyuechi@iscas.ac.cn>
Support using -Dcpu_instruction_set=rv64gcv to enable V extension.
Signed-off-by: sunyuechi <sunyuechi@iscas.ac.cn>
---
config/riscv/meson.build | 2 ++
1 file changed, 2 insertions(+)
diff --git a/config/riscv/meson.build b/config/riscv/meson.build
index e3694cf2e6..1036a86d05 100644
--- a/config/riscv/meson.build
+++ b/config/riscv/meson.build
@@ -111,6 +111,7 @@ arch_config = arch_config[arch_id]
# Concatenate flags respecting priorities.
dpdk_flags = flags_common + vendor_config['flags'] + arch_config.get('flags', [])
+if (cpu_instruction_set == 'rv64gc')
# apply supported machine args
machine_args = [] # Clear previous machine args
foreach flag: arch_config['machine_args']
@@ -118,6 +119,7 @@ foreach flag: arch_config['machine_args']
machine_args += flag
endif
endforeach
+endif
# check if we can do buildtime detection of extensions supported by the target
riscv_extension_macros = false
--
2.49.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-28 17:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-28 17:47 [PATCH RESEND 3/3] riscv: override machine_args only when default uk7b
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).