[PATCH v1] x86: Support Zhaoxin RNG2 instruction

Jan Beulich jbeulich@suse.com
Wed Jan 8 11:31:05 GMT 2025


On 08.01.2025 10:40, Mayshao-oc wrote:
> 
>> On 07.01.2025 12:04, Mayshao-oc wrote:
>>>> On 07.01.2025 04:08, Mayshao-oc wrote:
>>>>>> On 30.12.2024 10:20, Mayshao-oc wrote:
>>>>>> Is there a connection between PadLock and RNG2? Does RNG2 perhaps even imply PadLock as a prereq feature (wanting a dependency recorded in i386-gen.c)? If so, naming it "PadLockRNG2" may be an option to avoid a potential future clash.
>>>>> Yes, there is a connection. I think it's reasonable to naming it "PadLockRNG2", I will rename it.
>>>>
>>>> Well, if there's a connection, then (as said) the dependency also wants recording in i386-gen.c.
>>>     Ok, you mean add an element in isa_dependencies[],like {"PadLockRNG2", "PadLock"}?
>>
>> Yes.
>>
>>>     Assambler need this depenency information to do some check? I will take a while to understand this.
>>
>> It'll ensure that when PadLock is turned off, PadLockRNG2 would be turned off automatically as well.
>      Thanks for your comments. I don't understand the "when PadLock is turned off" means it is turned off in hardware or it is turned off in assembler.

The latter of course.

> If it means turned off in assembler, how can I test it?

Via -march= or .arch directives.

Jan


More information about the Binutils mailing list