|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 1/5] dump: Include missing "cpu.h" header for tswap32/tswap64() declarations |
Date: | Thu, 23 Feb 2023 11:43:42 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 2/23/23 11:19, Philippe Mathieu-Daudé wrote:
This file uses tswap() 4 times in the same function: get_note_sizes(), so I could extract it to a dump-target.c unit. I have no clue what that file is for, but this particularity is odd.
All uses of tswap in that file are wrong, and should be using cpu_to_dumpN, which correctly tests the endianness of the output.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |