Implement emulation of instruction "ret"
PATCH 1/1 Implement emulation of instruction "ret"
Hi Avi,
Attached is a patch implementing the instruction "ret" opcode 0xc3.
Please Comment/Apply.
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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): 1182210785.10789.5.camel-mpPvwfgnXtFHIUuj5cj4Omt3HXsI98Cx0E9HWUfgJXw@public.gmane.org
The patch attached to this email.
Quoted 5 lines
Hi Avi,
Attached is a patch implementing the instruction "ret" opcode
0xc3.Please Comment/Apply.
Thanks & Regards,
Nitin
Open Source Technology Center, Intel Corporation.
-------------------------------------------------------------------------
The mind is like a parachute; it works much better when it's open.
commit 34e90a48a81a298fe35e8da54736818dd8662e99
Author: Nitin A Kamble <[email protected]> Date: Mon Jun 18 19:55:26 2007 -0700
Implement emulation of instruction "ret" opcode 0xc3.
drivers/kvm/x86_emulate.c +8 -4
@@ -131,9 +131,9 @@ static u8 opcode_table[256] = {/* 0xB0 - 0xBF */ 0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,/* 0xC0 - 0xC7 */ - ByteOp | DstMem | SrcImm | ModRM, DstMem | SrcImmByte | ModRM,0 ,0 , -0 ,0 , ByteOp | DstMem | SrcImm | ModRM | Mov, - DstMem | SrcImm | ModRM | Mov, + ByteOp | DstMem | SrcImm | ModRM, DstMem | SrcImmByte | ModRM, +0 , ImplicitOps,0 ,0 , + ByteOp | DstMem | SrcImm | ModRM | Mov, DstMem | SrcImm | ModRM | Mov,/* 0xC8 - 0xCF */ 0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 , /* 0xD0 - 0xD7 */
@@ -1156,14 +1156,18 @@ special_insn:case 0xf4 :/* hlt */ ctxt->vcpu->halt_request =1 ; goto done; +case 0xc3 :/* ret */ + dst.ptr = &_eip; + goto pop_instruction; case 0x58 ... 0x5f: /* pop reg */ dst.ptr = (unsigned long *)&_regs[b &0x7 ]; +pop_instruction:if ((rc = ops->read_std (register_address (ctxt->ss_base, _regs[VCPU_REGS_RSP ]), dst.ptr, op_bytes, ctxt)) !=0 ) goto done; -register_address_increment (_regs[VCPU_REGS_RSP ], dst.bytes); +register_address_increment (_regs[VCPU_REGS_RSP ], op_bytes); dst.orig_val = dst.val;/* Disable writeback. */ break ; }
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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): 1182210869.10789.7.camel-mpPvwfgnXtFHIUuj5cj4Omt3HXsI98Cx0E9HWUfgJXw@public.gmane.org
Avi Kivity
AppliedQuoted 6 lines · Nitin A
The patch attached to this email.
Quoted 5 lines
Hi Avi,
Attached is a patch implementing the instruction "ret" opcode
0xc3.Please Comment/Apply.
Applied, thanks.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/