cancel
Showing results for 
Search instead for 
Did you mean: 

Processors

CarlosCarrancom
Journeyman III

serializing on AMD processors

In recent Intel ISA documents the lfence instruction has been defined as serializing the instruction stream (preventing out-of-order execution across it). In particular, the description of the instruction includes this line:

Specifically, LFENCE does not execute until all prior instructions have completed locally, and no later instruction begins execution until LFENCE completes.

Note that this applies to all instructions, not just memory load instructions, making lfence more than just a memory ordering fence.

Although this now appears in the ISA documentation, it isn't clear if it is "architectural", i.e., to be obeyed by all x86 implementations, or if it is Intel specific. In particular, do AMD processors also treat lfence as serializing the instruction stream?

0 Likes
2 Replies

The purpose on your query is what, security, spectre, speculative threats ?

 

Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3600c16dgtzn kit, Aorus gen4 1tb, Nitro+RX6900XT, RM850, Win.10 Pro., LC27G55T..
0 Likes
ShunyaAtma
Adept I

If CPUID 0x80000021 EAX bit 2 is set, I think the answer is yes. You should be able to find more information about this in the Processor Programming Reference (PPR) specific to the family and model of your processor.

0 Likes