From: Jack Lange Date: Mon, 23 Jun 2008 17:06:20 +0000 (+0000) Subject: Instruction Decoder - Name Change X-Git-Tag: boot386puppy-26-to-ide~21 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=e6b4a2f11bae0faac9faedec12422385dcc39593 Instruction Decoder - Name Change --- diff --git a/palacios/src/palacios/vmm_decoder.c b/palacios/src/palacios/vmm_decoder.c new file mode 100644 index 0000000..9b8d91e --- /dev/null +++ b/palacios/src/palacios/vmm_decoder.c @@ -0,0 +1,34 @@ +#include + + + +/* The full blown instruction parser... */ +int v3_parse_instr(struct guest_info * info, + char * instr_ptr, + uint_t * instr_length, + struct x86_operand * src_operand, + struct x86_operand * dst_operand, + struct x86_operand * extra_operand) { + + V3_Assert(src_operand != NULL); + V3_Assert(dst_operand != NULL); + V3_Assert(extra_operand != NULL); + V3_Assert(instr_length != NULL); + V3_Assert(info != NULL); + + + // Ignore prefixes for now + while (is_prefix_byte(*instr)) { + instr++; + *instr_length++; + } + + + // Opcode table lookup, see xen/kvm + + + + + + return 0; +}