]> git.droids-corp.org - dpdk.git/commit
eal/riscv: fix vector header for C++
authorStanislaw Kardach <kda@semihalf.com>
Thu, 9 Jun 2022 12:16:59 +0000 (14:16 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 15 Jun 2022 07:12:16 +0000 (09:12 +0200)
commit93cba71bdce193d1ddb76ad33d4282136e16dd09
treee9d460155d608837aedcc3810191fc033a3ebc98
parent68fc7c39ee42ae8d787709ddf0106edc3b02db5c
eal/riscv: fix vector header for C++

rte_xmm_t is a union type which wraps around xmm_t and maps its contents
to scalar structures. Since C++ has stricter type conversion rules than
C, the rte_xmm_t::x has to be used instead of C-casting.

Fixes: f22e705ebf12 ("eal/riscv: support RISC-V architecture")
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/eal/riscv/include/rte_vect.h