+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
+
#ifndef __VMM_EMULATE_H
#define __VMM_EMULATE_H
};
+struct basic_instr_info {
+ uint_t instr_length;
+ uint_t op_size;
+ uint_t str_op : 1;
+ uint_t has_rep : 1;
+};
+
+
+
/************************/
/* EXTERNAL DECODER API */
/************************/
* Gets the operand size for a memory operation
*
*/
-int v3_basic_mem_decode(struct guest_info * info, addr_t instr_ptr, uint_t * size, uint_t * instr_len);
-
+int v3_basic_mem_decode(struct guest_info * info, addr_t instr_ptr, struct basic_instr_info * instr_info);
+/* Removes a rep prefix in place */
+void strip_rep_prefix(uchar_t * instr, int length);