On 08/02/2010 10:28 AM, Paolo Bonzini wrote:
On 08/01/2010 04:23 PM, Avi Kivity wrote:if (c->src.type == OP_MEM) { + if (c->d & NoAccess) + goto no_fetch; rc = read_emulated(ctxt, ops, c->src.addr.mem, c->src.valptr, c->src.bytes); if (rc != X86EMUL_CONTINUE) goto done; c->src.orig_val = c->src.val; + no_fetch: + ; }Maybe remove the goto? 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_val = c->src.val; } Or do you have other plans for it? :)
Mostly, keeping the patch as small as possible. I'll definitely do a cleanup pass later.
-- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
