xen: drop the nop() macro
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Mar 2019 13:18:04 +0000 (13:18 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Mar 2019 14:36:07 +0000 (14:36 +0000)
commit3d5adba2ffbb273a7454614189ebbe696ba3aa9a
tree3bee33701dd3f8b284f35d58e993e0e6684e140c
parent75e383fa93f8012a74ba99cce46d5a9677f1df3e
xen: drop the nop() macro

There isn't a plausible reason to insert nops into code in this manner.

The sole use is in do_debug_key(), and exists to prevent the compiler
optimising the tail of the function with 'jmp debugger_trap_fatal'

In practice, a compiler barrier suffices just as well to prevent the tailcall,
and doesn't involve inserting unnecessary instructions.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/common/keyhandler.c
xen/include/asm-arm/system.h
xen/include/asm-x86/system.h