starts emulate_cr with emulate_cr_mov and emulate_cr_lmsw
[fkvm-libfkvm.git] / disasm.h
blob1001dd97f730912a2c1dad9019e6426c290231c5
1 #ifndef DISASM_H
2 #define DISASM_H
3 #include <libdis.h>
5 int
6 kvm_reg_from_x86_reg(int x86_reg_id);
8 int
9 cr_num_from_x86_reg(int x86_reg_id);
11 struct kvm_segment*
12 kvm_seg_from_x86_op(struct kvm_sregs *sregs, x86_op_t *op);
14 uint64_t
15 get_source_data(struct kvm_regs *regs, x86_op_t *op);
17 uint64_t
18 get_memi_address(struct kvm_regs *regs, struct kvm_sregs *sregs,
19 x86_op_t *op, size_t size);
21 unsigned int
22 get_x86_insn(const uint64_t insn_addr, x86_insn_t *insn);
24 void
25 libdisasm_init(size_t reg_size);
27 void
28 libdisasm_cleanup();
30 #endif