projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b22ee98
)
x86emul: fold exit paths
author
Jan Beulich
<jbeulich@suse.com>
Tue, 14 Mar 2017 11:26:26 +0000
(12:26 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Tue, 14 Mar 2017 11:26:26 +0000
(12:26 +0100)
Move "cannot_emulate" and make it go through the common (error) exit
path.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/x86_emulate/x86_emulate.c
b/xen/arch/x86/x86_emulate/x86_emulate.c
index cbbfe5c01ca2357fb86512882059d2b4b217f3b4..0cbeb31db40641039898c5851de6ea3a5aeff074 100644
(file)
--- a/
xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/
xen/arch/x86/x86_emulate/x86_emulate.c
@@
-7780,7
+7780,9
@@
x86_emulate(
}
default:
- goto cannot_emulate;
+ cannot_emulate:
+ rc = X86EMUL_UNHANDLEABLE;
+ goto done;
}
if ( state->simd_size )
@@
-7924,11
+7926,6
@@
x86_emulate(
_put_fpu();
put_stub(stub);
return rc;
-
- cannot_emulate:
- _put_fpu();
- put_stub(stub);
- return X86EMUL_UNHANDLEABLE;
#undef state
}