[PATCH] RISC-V: Add support for Ztso

Conor.Dooley at microchip.com Conor.Dooley at microchip.com
Fri Sep 16 07:13:06 PDT 2022


On 16/09/2022 15:09, Palmer Dabbelt wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On Fri, 16 Sep 2022 03:00:35 PDT (-0700), Conor.Dooley at microchip.com wrote:
>> On 02/09/2022 04:43, Palmer Dabbelt wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> The Ztso extension was recently frozen, this adds support for running
>>> binaries that depend on TSO on systems that support Ztso.
>>>
>>> Signed-off-by: Palmer Dabbelt <palmer at rivosinc.com>
>>
>>>   /*
>>> - * This is used to ensure we don't load something for the wrong architecture.
>>> + * Binaries that assume TSO cannot be correctly run on non-TSO systems, so
>>> + * prevent them from even being loaded.
>>> + */
>>> +#define EF_RISCV_TSO   0x0010
>>
>> My only comment, and I asked this on the other patch too, is why is this
>> not s/EF/ELF like the other defines in the file?
> 
> It's EF_RISCV_TSO in the ELF spec, and that's what other ports do (see
> EF_ARM, for example).

Right. I did try looking in arm, but I must've missed it. These spec
people really have it out for my OCD...



More information about the linux-riscv mailing list