projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee45b58
)
KVM: x86 emulator: remove useless label from x86_emulate_insn()
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Fri, 6 Aug 2010 07:36:36 +0000
(15:36 +0800)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:51:09 +0000
(10:51 +0200)
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index df349f376da876e9bee371230b1daadb057205c2..78541e8fd14941ff0e566ff5076deb4ecc001aef 100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-2787,16
+2787,12
@@
x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
c->eip = ctxt->eip;
}
- if (c->src.type == OP_MEM) {
- if (c->d & NoAccess)
- goto no_fetch;
+ if ((c->src.type == OP_MEM) && !(c->d & NoAccess)) {
rc = read_emulated(ctxt, ops, c->src.addr.mem,
c->src.valptr, c->src.bytes);
if (rc != X86EMUL_CONTINUE)
goto done;
c->src.orig_val64 = c->src.val64;
- no_fetch:
- ;
}
if (c->src2.type == OP_MEM) {