Mohammed Gamal wrote:
This patch fixes the previous nop patch and adds the xchg reg,rax
instruction opcodes.
+ case 0x90: /* nop / xchg r8,rax */
+ if(! (c->rex_prefix & 1) )
+ break;
space after if.
+ c->dst.ptr = decode_register( (c->b & 7) | ((c->rex_prefix & 1)
<<
3), c->regs, 0);
+ c->dst.val = *(c->dst.ptr);
+ goto xchg;
You can have the destination autodecoded by using DstReg instead of
ImplicitOps. Otherwise, looks fine.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
--
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