DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Stanisław Kardach" <stanislaw.kardach@gmail.com>
To: uk7b@foxmail.com
Cc: dev@dpdk.org, Sun Yuechi <sunyuechi@iscas.ac.cn>,
	 Bruce Richardson <bruce.richardson@intel.com>
Subject: Re: [PATCH v2 5/5] riscv: override machine_args only when default
Date: Tue, 12 Aug 2025 11:22:58 +0200	[thread overview]
Message-ID: <CAJcPQBou5nf7JsbOMOKcQu6LFshR09cokarxTSRN2HTdkW1Vfg@mail.gmail.com> (raw)
In-Reply-To: <tencent_C36C8B675AB5C9C26B48AD986FEE0FCB2905@qq.com>

[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]

On Tue, 1 Jul 2025, 20:21 , <uk7b@foxmail.com> wrote:

> From: Sun Yuechi <sunyuechi@iscas.ac.cn>
>
> Support using -Dcpu_instruction_set=rv64gcv to enable V extension.
>
> Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
>
Reviewed-by: Stanisław Kardach <stanislaw.kardach@gmail.com>

> ---
>  config/riscv/meson.build | 16 +++++++++-------
>  1 file changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/config/riscv/meson.build b/config/riscv/meson.build
> index e3694cf2e6..f93ea3e145 100644
> --- a/config/riscv/meson.build
> +++ b/config/riscv/meson.build
> @@ -111,13 +111,15 @@ arch_config = arch_config[arch_id]
>  # Concatenate flags respecting priorities.
>  dpdk_flags = flags_common + vendor_config['flags'] +
> arch_config.get('flags', [])
>
> -# apply supported machine args
> -machine_args = [] # Clear previous machine args
> -foreach flag: arch_config['machine_args']
> -    if cc.has_argument(flag)
> -        machine_args += flag
> -    endif
> -endforeach
> +if (cpu_instruction_set == 'rv64gc')
> +    # apply supported machine args
> +    machine_args = [] # Clear previous machine args
> +    foreach flag: arch_config['machine_args']
> +        if cc.has_argument(flag)
> +            machine_args += flag
> +        endif
> +    endforeach
> +endif
>
>  # check if we can do buildtime detection of extensions supported by the
> target
>  riscv_extension_macros = false
> --
> 2.50.0
>
>

[-- Attachment #2: Type: text/html, Size: 2375 bytes --]

      reply	other threads:[~2025-08-12  9:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250701182033.642384-1-uk7b@foxmail.com>
2025-07-01 18:20 ` [PATCH v2 1/5] config/riscv: detect V extension uk7b
2025-08-12  9:21   ` Stanisław Kardach
2025-07-01 18:20 ` [PATCH v2 2/5] eal/riscv/spinlock: add rte_cpuflag.h uk7b
2025-08-12  9:20   ` Stanisław Kardach
2025-07-01 18:20 ` [PATCH v2 3/5] lib/lpm: R-V V rte_lpm_lookupx4 uk7b
2025-08-12  9:21   ` Stanisław Kardach
2025-07-01 18:20 ` [PATCH v2 4/5] lib/fib: R-V V rte_fib_lookup_bulk uk7b
2025-08-12  9:22   ` Stanisław Kardach
2025-07-01 18:20 ` [PATCH v2 5/5] riscv: override machine_args only when default uk7b
2025-08-12  9:22   ` Stanisław Kardach [this message]

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=CAJcPQBou5nf7JsbOMOKcQu6LFshR09cokarxTSRN2HTdkW1Vfg@mail.gmail.com \
    --to=stanislaw.kardach@gmail.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=sunyuechi@iscas.ac.cn \
    --cc=uk7b@foxmail.com \
    /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).