x86emul: introduce EXPECT()
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Nov 2018 14:02:18 +0000 (15:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Nov 2018 14:02:18 +0000 (15:02 +0100)
commitcb3b3438c7c73657f3e025f8af8b8dca63fb79d3
tree43711555b0e7809acdcbf56a28d59d8ff014a519
parent789589968ed90e82a832dbc60e958c76b787be7e
x86emul: introduce EXPECT()

This abstracts away the debug/release coverage using both
ASSERT_UNREACHABLE() and a return value of X86EMUL_UNHANDLEABLE.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c