]> asedeno.scripts.mit.edu Git - linux.git/commit
s390: add assembler macros for CPU alternatives
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 19 Mar 2018 17:07:31 +0000 (18:07 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 28 Mar 2018 06:38:27 +0000 (08:38 +0200)
commitfba9eb7946251d6e420df3bdf7bc45195be7be9a
tree4ff0b8e1cf0b14b6bee38ff5cb8c6d43a4446e13
parentd424986f1d6b16079b3231db0314923f4f8deed1
s390: add assembler macros for CPU alternatives

Add a header with macros usable in assembler files to emit alternative
code sequences. It works analog to the alternatives for inline assmeblies
in C files, with the same restrictions and capabilities.
The syntax is

     ALTERNATIVE "<default instructions sequence>", \
 "<alternative instructions sequence>", \
 "<features-bit>"
and

     ALTERNATIVE_2 "<default instructions sequence>", \
   "<alternative instructions sqeuence #1>", \
   "<feature-bit #1>",
   "<alternative instructions sqeuence #2>", \
   "<feature-bit #2>"

Reviewed-by: Vasily Gorbik <gor@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/alternative-asm.h [new file with mode: 0644]