X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_xed.c;h=cc25dc558e00210dce129820a715f0209fb15ee0;hb=refs%2Ftags%2F1.0;hp=7830458304ce3f507c666430bee7fa5af7d98afb;hpb=e70e95962c26832628d586e07f9cd1a2e1852d72;p=palacios.git diff --git a/palacios/src/palacios/vmm_xed.c b/palacios/src/palacios/vmm_xed.c index 7830458..cc25dc5 100644 --- a/palacios/src/palacios/vmm_xed.c +++ b/palacios/src/palacios/vmm_xed.c @@ -33,6 +33,15 @@ #endif + + +#ifndef DEBUG_XED +#undef PrintDebug +#define PrintDebug(fmt, args...) +#endif + + + static xed_state_t decoder_state; #define GPR_REGISTER 0 @@ -115,7 +124,7 @@ static int set_decoder_mode(struct guest_info * info, xed_state_t * state) { return 0; } -int is_flags_reg(xed_reg_enum_t xed_reg) { +static int is_flags_reg(xed_reg_enum_t xed_reg) { switch (xed_reg) { case XED_REG_FLAGS: case XED_REG_EFLAGS: @@ -128,7 +137,7 @@ int is_flags_reg(xed_reg_enum_t xed_reg) { -int init_decoder() { +int v3_init_decoder() { xed_tables_init(); xed_state_zero(&decoder_state); return 0;