[PATCH] RISC-V: Add support for Ztso
Palmer Dabbelt
palmer at rivosinc.com
Fri Sep 16 07:09:46 PDT 2022
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).
>
> Thanks,
> Conor.
>
More information about the linux-riscv
mailing list