[PATCH v5 3/3] riscv: override machine_args only when default
孙越池
sunyuechi at iscas.ac.cn
Fri Jun 27 06:03:30 CEST 2025
Okay, they have been updated in v6.
> -----原始邮件-----
> 发件人: "Stanisław Kardach" <stanislaw.kardach at gmail.com>
> 发送时间: 2025-06-27 10:31:15 (星期五)
> 收件人: uk7b at foxmail.com
> 抄送: dev at dpdk.org, "Sun Yuechi" <sunyuechi at iscas.ac.cn>, "Bruce Richardson" <bruce.richardson at intel.com>
> 主题: Re: [PATCH v5 3/3] riscv: override machine_args only when default
>
> On Wed, Jun 11, 2025 at 5:23 PM <uk7b at foxmail.com> wrote:
> >
> > From: Sun Yuechi <sunyuechi at iscas.ac.cn>
> >
> > Support using -Dcpu_instruction_set=rv64gcv to enable V extension.
> >
> > Signed-off-by: Sun Yuechi <sunyuechi at 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')
> Perhaps instead of removing full flag customization, we should skip
> the -march flag within foreach if cpu_instruction_set!='rv64gc'.
> Reason being that just 'rv64gc' doesn't mean the default. Look at
> SiFive configs - they have -march=rv64gc but -mtune specific to those
> boards.
> > # 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
> Small nit - there's an indentation level missing around #if-#endif
>
> >
> > # check if we can do buildtime detection of extensions supported by the target
> > riscv_extension_macros = false
> > --
> > 2.49.0
> >
</sunyuechi at iscas.ac.cn></sunyuechi at iscas.ac.cn></uk7b at foxmail.com></bruce.richardson at intel.com></sunyuechi at iscas.ac.cn></stanislaw.kardach at gmail.com>
More information about the dev
mailing list