Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258026
b: refs/heads/master
c: 9dac77f
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jul 12, 2011
1 parent abd0746 commit eb96e48
Show file tree
Hide file tree
Showing 5 changed files with 633 additions and 747 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36dd9bb5ce32bc39e25a5fcc61415f13e3ed5d17
refs/heads/master: 9dac77fa4011bdb4b541a8db087eac96a602faec
44 changes: 20 additions & 24 deletions trunk/arch/x86/include/asm/kvm_emulate.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,26 @@ struct read_cache {
unsigned long end;
};

struct decode_cache {
struct x86_emulate_ctxt {
struct x86_emulate_ops *ops;

/* Register state before/after emulation. */
unsigned long eflags;
unsigned long eip; /* eip before instruction emulation */
/* Emulated execution mode, represented by an X86EMUL_MODE value. */
int mode;

/* interruptibility state, as a result of execution of STI or MOV SS */
int interruptibility;

bool guest_mode; /* guest running a nested guest */
bool perm_ok; /* do not check permissions if true */
bool only_vendor_specific_insn;

bool have_exception;
struct x86_exception exception;

/* decode cache */
u8 twobyte;
u8 b;
u8 intercept;
Expand Down Expand Up @@ -261,29 +280,6 @@ struct decode_cache {
struct read_cache mem_read;
};

struct x86_emulate_ctxt {
struct x86_emulate_ops *ops;

/* Register state before/after emulation. */
unsigned long eflags;
unsigned long eip; /* eip before instruction emulation */
/* Emulated execution mode, represented by an X86EMUL_MODE value. */
int mode;

/* interruptibility state, as a result of execution of STI or MOV SS */
int interruptibility;

bool guest_mode; /* guest running a nested guest */
bool perm_ok; /* do not check permissions if true */
bool only_vendor_specific_insn;

bool have_exception;
struct x86_exception exception;

/* decode cache */
struct decode_cache decode;
};

/* Repeat String Operation Prefix */
#define REPE_PREFIX 0xf3
#define REPNE_PREFIX 0xf2
Expand Down
Loading

0 comments on commit eb96e48

Please sign in to comment.