Skip to contentSkip to conversation

(big) real mode emulation - mul instruction from group 3

PATCH In review Nitin A Kamble 2 participants 3 messages Oct 31, 2007 2 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (big) real mode emulation - mul instruction from group 3

Hi Avi,
Attached is the patch to implement mul instruction from the group 3
opcodes.
Please Apply.

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

From 3acea06771569a4018b4ac998797b529ba75a795 Mon Sep 17 00:00:00 2001
From: Nitin A Kamble <[email protected]>
Date: Tue, 30 Oct 2007 18:28:40 -0800
Subject: [PATCH] [PATCH] Implement multipy instruction from the group 3.

---
 drivers/kvm/x86_emulate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/kvm/x86_emulate.c +2 -0
index 3959c20..5815128 100644
@@ -1034,6 +1034,8 @@ static inline int emulate_grp3(struct x86_emulate_ctxt *ctxt,
 	case 3:	/* neg */
 		emulate_1op("neg", c->dst, ctxt->eflags);
 		break;
+	case 4: /* mul */
+		emulate_1op("mul", c->dst, ctxt->eflags);
 	default:
 		DPRINTF("Cannot emulate %02x\n", c->b);
 		rc = X86EMUL_UNHANDLEABLE;
Signature · 1 line
1.5.2.2

-------------------------------------------------------------------------
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

A message that is not in the archive (sent off-list or not yet received): 1193791027.9258.8.camel-mpPvwfgnXtFHIUuj5cj4Omt3HXsI98Cx0E9HWUfgJXw@public.gmane.org

#2 lore raw
Quoted 17 lines · Nitin A Kamble

Hi Avi,
Attached is the patch to implement mul instruction from the group 3
opcodes.

drivers/kvm/x86_emulate.c +2 -0
index 3959c20..5815128 100644
@@ -1034,6 +1034,8 @@ static inline int emulate_grp3(struct 
 x86_emulate_ctxt *ctxt,
     case 3:    /* neg */
         emulate_1op("neg", c->dst, ctxt->eflags);
         break;
+    case 4: /* mul */
+        emulate_1op("mul", c->dst, ctxt->eflags);
     default:
         DPRINTF("Cannot emulate %02x\n", c->b);
Quoted 1 line
         rc = X86EMUL_UNHANDLEABLE;

This is missing a "break;".

How are you testing these patches?

Signature · 8 lines
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
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/

A message that is not in the archive (sent off-list or not yet received): 4727D1ED.7070609-atKUWr5tajBWk0Htik3J/[email protected]

#4 lore raw
Quoted 1 line · Avi Kivity

This is missing a "break;".

Hi Avi,
You are right. The break statement should be there. It was my mistake
while getting the patch out from the test tree to the push tree. Even if it is a small patch I should not retype it.

Quoted 2 lines

How are you testing these patches?

I am running SL101 guest through my test tree. In my test tree the patch is good, it was the bug introduced while copying.

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

-------------------------------------------------------------------------
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