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.1 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/>.
23 #include "x86_decode.h"
27 bool exec_instruction(CPUX86State
*env
, struct x86_decode
*ins
);
29 void load_regs(CPUState
*cpu
);
30 void store_regs(CPUState
*cpu
);
32 void simulate_rdmsr(CPUX86State
*env
);
33 void simulate_wrmsr(CPUX86State
*env
);
35 target_ulong
read_reg(CPUX86State
*env
, int reg
, int size
);
36 void write_reg(CPUX86State
*env
, int reg
, target_ulong val
, int size
);
37 target_ulong
read_val_from_reg(target_ulong reg_ptr
, int size
);
38 void write_val_to_reg(target_ulong reg_ptr
, target_ulong val
, int size
);
39 void write_val_ext(CPUX86State
*env
, target_ulong ptr
, target_ulong val
, int size
);
40 uint8_t *read_mmio(CPUX86State
*env
, target_ulong ptr
, int bytes
);
41 target_ulong
read_val_ext(CPUX86State
*env
, target_ulong ptr
, int size
);
43 void exec_movzx(CPUX86State
*env
, struct x86_decode
*decode
);
44 void exec_shl(CPUX86State
*env
, struct x86_decode
*decode
);
45 void exec_movsx(CPUX86State
*env
, struct x86_decode
*decode
);
46 void exec_ror(CPUX86State
*env
, struct x86_decode
*decode
);
47 void exec_rol(CPUX86State
*env
, struct x86_decode
*decode
);
48 void exec_rcl(CPUX86State
*env
, struct x86_decode
*decode
);
49 void exec_rcr(CPUX86State
*env
, struct x86_decode
*decode
);