qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 15/34] target/ppc: Implement Vector Insert from GPR using


From: Richard Henderson
Subject: Re: [PATCH v2 15/34] target/ppc: Implement Vector Insert from GPR using GPR index insns
Date: Sat, 30 Oct 2021 15:26:01 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/29/21 1:24 PM, matheus.ferst@eldorado.org.br wrote:
+        memcpy(ELEM_ADDR(t, idx, sizeof(TYPE)), &val, sizeof(TYPE));           
\

You need to copy val to TYPE before you can memcpy out of it, otherwise failure for big-endian host.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]