// First Attempt = 494 lines
// current = 106 lines
int handle_cr0_write(struct guest_info * info) {
- char instr[15];
+ uchar_t instr[15];
int ret;
struct x86_instr dec_instr;
*shadow_cr0 = *new_cr0;
shadow_cr0->et = 1;
- if (get_mem_mode(info) == VIRTUAL_MEM) {
+ if (v3_get_mem_mode(info) == VIRTUAL_MEM) {
struct cr3_32 * shadow_cr3 = (struct cr3_32 *)&(info->shdw_pg_state.shadow_cr3);
info->ctrl_regs.cr3 = *(addr_t*)shadow_cr3;
// First attempt = 253 lines
// current = 51 lines
int handle_cr0_read(struct guest_info * info) {
- char instr[15];
+ uchar_t instr[15];
int ret;
struct x86_instr dec_instr;
// current = 65 lines
int handle_cr3_write(struct guest_info * info) {
int ret;
- char instr[15];
+ uchar_t instr[15];
struct x86_instr dec_instr;
if (info->mem_mode == PHYSICAL_MEM) {
// first attempt = 156 lines
// current = 36 lines
int handle_cr3_read(struct guest_info * info) {
- char instr[15];
+ uchar_t instr[15];
int ret;
struct x86_instr dec_instr;