i386: hvf: move all hvf files in the same directory
[qemu/ericb.git] / target / i386 / hvf / x86_emu.h
blobcd4acb0030d9c745cf3ad41b935e4dd67cf9ca42
1 /*
2 * Copyright (C) 2016 Veertu Inc,
3 * Copyright (C) 2017 Google Inc,
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef __X86_EMU_H__
19 #define __X86_EMU_H__
21 #include "x86.h"
22 #include "x86_decode.h"
23 #include "cpu.h"
25 void init_emu(void);
26 bool exec_instruction(struct CPUX86State *env, struct x86_decode *ins);
28 void load_regs(struct CPUState *cpu);
29 void store_regs(struct CPUState *cpu);
31 void simulate_rdmsr(struct CPUState *cpu);
32 void simulate_wrmsr(struct CPUState *cpu);
34 addr_t read_reg(CPUX86State *env, int reg, int size);
35 void write_reg(CPUX86State *env, int reg, addr_t val, int size);
36 addr_t read_val_from_reg(addr_t reg_ptr, int size);
37 void write_val_to_reg(addr_t reg_ptr, addr_t val, int size);
38 void write_val_ext(struct CPUX86State *env, addr_t ptr, addr_t val, int size);
39 uint8_t *read_mmio(struct CPUX86State *env, addr_t ptr, int bytes);
40 addr_t read_val_ext(struct CPUX86State *env, addr_t ptr, int size);
42 void exec_movzx(struct CPUX86State *env, struct x86_decode *decode);
43 void exec_shl(struct CPUX86State *env, struct x86_decode *decode);
44 void exec_movsx(struct CPUX86State *env, struct x86_decode *decode);
45 void exec_ror(struct CPUX86State *env, struct x86_decode *decode);
46 void exec_rol(struct CPUX86State *env, struct x86_decode *decode);
47 void exec_rcl(struct CPUX86State *env, struct x86_decode *decode);
48 void exec_rcr(struct CPUX86State *env, struct x86_decode *decode);
49 #endif