Skip to contentSkip to conversation

(big) real mode emulation - jmp rel short

PATCH New Nitin A Kamble 1 participant 1 message Aug 10, 2007 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (big) real mode emulation - jmp rel short

Hi Avi,
Attached is the patch for the instruction "jmp rel short", opcode
0xeb.

This patch goes on top of last patch (jmp rel).

Thanks & Regards,
Nitin
Open Source Technology Center, Intel Corporation.
-------------------------------------------------------------------------
The mind is like a parachute; it works much better when it's open.

commit 38f7db6830c862cd0470aaa07cabe616ff741d69

Author: Nitin A Kamble <[email protected]>
Date:   Fri Aug 10 18:48:05 2007 -0700

Implement "jmp rel short" opcode: 0xeb

drivers/kvm/x86_emulate.c +2 -1
index 40fb6ee..16ea385 100644
@@ -148,7 +148,7 @@ static u8 opcode_table[256] = {
 	/* 0xE0 - 0xE7 */
 	0, 0, 0, 0, 0, 0, 0, 0,
 	/* 0xE8 - 0xEF */
-	0, SrcImm|ImplicitOps, 0, 0, 0, 0, 0, 0,
+	0, SrcImm|ImplicitOps, 0, SrcImmByte|ImplicitOps, 0, 0, 0, 0,
 	/* 0xF0 - 0xF7 */
 	0, 0, 0, 0,
 	ImplicitOps, 0,
@@ -1208,6 +1208,7 @@ special_insn:
 	case 0xae ... 0xaf:	/* scas */
 		DPRINTF("Urk! I don't handle SCAS.\n");
 		goto cannot_emulate;
+	case 0xeb: /* jmp rel short */
 	case 0xe9: /* jmp rel */
 		jmp_rel(src.val);
 		no_wb = 1; /* Disable writeback. */

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel