diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2018-10-09 19:16:12 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2018-10-16 17:14:55 +0100 |
| commit | 2ef297af07196c29446556537861f8e7dfeeae7b (patch) | |
| tree | d9b9e07b71bf83192eb175f423fea97d51a7d013 /fpu/softfloat.c | |
| parent | ab44c7b71fa683b9402bea0d367b87c881704188 (diff) | |
| download | focaccia-qemu-2ef297af07196c29446556537861f8e7dfeeae7b.tar.gz focaccia-qemu-2ef297af07196c29446556537861f8e7dfeeae7b.zip | |
coccinelle: new inplace-byteswaps.cocci to remove inplace-byteswapping calls
Add a new Coccinelle script which replaces uses of the inplace byteswapping functions *_to_cpus() and cpu_to_*s() with their not-in-place equivalents. This is useful for where the swapping is done on members of a packed struct -- taking the address of the member to pass it to an inplace function is undefined behaviour in C. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20181009181612.10633-1-peter.maydell@linaro.org
Diffstat (limited to 'fpu/softfloat.c')
0 files changed, 0 insertions, 0 deletions