• Heiko Carstens's avatar
    s390/cpumf: fix qsi inline assembly · 259acc5c
    Heiko Carstens authored
    The qsi inline assembly takes an initialized "cc" variable as output
    operand but specifies it as write-to operand only instead of
    read/write operand. This allows the compiler to omit the
    initialization, which in fact it also does (gcc 6.1).
    
    Use the "+" constraint modifier to fix this. In addition also use the
    Q constraint to specify the hws_qsi_info_block memory location, so the
    compiler can generate slightly better code. Also get rid of the cc
    clobber since none of the instructions within the inline assembly
    modify the condition code.
    Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    259acc5c
cpu_mf.h 8.76 KB