1 /////////////////////////////////////////////////////////////////////////
2 // $Id: instrument.cc 14110 2021-01-31 05:41:43Z sshwarts $
3 /////////////////////////////////////////////////////////////////////////
4 //
5 //   Copyright (c) 2006-2015 Stanislav Shwartsman
6 //          Written by Stanislav Shwartsman [sshwarts at sourceforge net]
7 //
8 //  This library is free software; you can redistribute it and/or
9 //  modify it under the terms of the GNU Lesser General Public
10 //  License as published by the Free Software Foundation; either
11 //  version 2 of the License, or (at your option) any later version.
12 //
13 //  This library is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 //  Lesser General Public License for more details.
17 //
18 //  You should have received a copy of the GNU Lesser General Public
19 //  License along with this library; if not, write to the Free Software
20 //  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
21 
22 
23 #include "bochs.h"
24 
25 #if BX_INSTRUMENTATION
26 
bx_instr_init_env(void)27 void bx_instr_init_env(void) {}
bx_instr_exit_env(void)28 void bx_instr_exit_env(void) {}
29 
bx_instr_initialize(unsigned cpu)30 void bx_instr_initialize(unsigned cpu) {}
bx_instr_exit(unsigned cpu)31 void bx_instr_exit(unsigned cpu) {}
bx_instr_reset(unsigned cpu,unsigned type)32 void bx_instr_reset(unsigned cpu, unsigned type) {}
bx_instr_hlt(unsigned cpu)33 void bx_instr_hlt(unsigned cpu) {}
bx_instr_mwait(unsigned cpu,bx_phy_address addr,unsigned len,Bit32u flags)34 void bx_instr_mwait(unsigned cpu, bx_phy_address addr, unsigned len, Bit32u flags) {}
35 
bx_instr_debug_promt()36 void bx_instr_debug_promt() {}
bx_instr_debug_cmd(const char * cmd)37 void bx_instr_debug_cmd(const char *cmd) {}
38 
bx_instr_cnear_branch_taken(unsigned cpu,bx_address branch_eip,bx_address new_eip)39 void bx_instr_cnear_branch_taken(unsigned cpu, bx_address branch_eip, bx_address new_eip) {}
bx_instr_cnear_branch_not_taken(unsigned cpu,bx_address branch_eip)40 void bx_instr_cnear_branch_not_taken(unsigned cpu, bx_address branch_eip) {}
bx_instr_ucnear_branch(unsigned cpu,unsigned what,bx_address branch_eip,bx_address new_eip)41 void bx_instr_ucnear_branch(unsigned cpu, unsigned what, bx_address branch_eip, bx_address new_eip) {}
bx_instr_far_branch(unsigned cpu,unsigned what,Bit16u prev_cs,bx_address prev_eip,Bit16u new_cs,bx_address new_eip)42 void bx_instr_far_branch(unsigned cpu, unsigned what, Bit16u prev_cs, bx_address prev_eip, Bit16u new_cs, bx_address new_eip) {}
43 
bx_instr_opcode(unsigned cpu,bxInstruction_c * i,const Bit8u * opcode,unsigned len,bool is32,bool is64)44 void bx_instr_opcode(unsigned cpu, bxInstruction_c *i, const Bit8u *opcode, unsigned len, bool is32, bool is64) {}
45 
bx_instr_interrupt(unsigned cpu,unsigned vector)46 void bx_instr_interrupt(unsigned cpu, unsigned vector) {}
bx_instr_exception(unsigned cpu,unsigned vector,unsigned error_code)47 void bx_instr_exception(unsigned cpu, unsigned vector, unsigned error_code) {}
bx_instr_hwinterrupt(unsigned cpu,unsigned vector,Bit16u cs,bx_address eip)48 void bx_instr_hwinterrupt(unsigned cpu, unsigned vector, Bit16u cs, bx_address eip) {}
49 
bx_instr_tlb_cntrl(unsigned cpu,unsigned what,bx_phy_address new_cr3)50 void bx_instr_tlb_cntrl(unsigned cpu, unsigned what, bx_phy_address new_cr3) {}
bx_instr_clflush(unsigned cpu,bx_address laddr,bx_phy_address paddr)51 void bx_instr_clflush(unsigned cpu, bx_address laddr, bx_phy_address paddr) {}
bx_instr_cache_cntrl(unsigned cpu,unsigned what)52 void bx_instr_cache_cntrl(unsigned cpu, unsigned what) {}
bx_instr_prefetch_hint(unsigned cpu,unsigned what,unsigned seg,bx_address offset)53 void bx_instr_prefetch_hint(unsigned cpu, unsigned what, unsigned seg, bx_address offset) {}
54 
bx_instr_before_execution(unsigned cpu,bxInstruction_c * i)55 void bx_instr_before_execution(unsigned cpu, bxInstruction_c *i) {}
bx_instr_after_execution(unsigned cpu,bxInstruction_c * i)56 void bx_instr_after_execution(unsigned cpu, bxInstruction_c *i) {}
bx_instr_repeat_iteration(unsigned cpu,bxInstruction_c * i)57 void bx_instr_repeat_iteration(unsigned cpu, bxInstruction_c *i) {}
58 
bx_instr_inp(Bit16u addr,unsigned len)59 void bx_instr_inp(Bit16u addr, unsigned len) {}
bx_instr_inp2(Bit16u addr,unsigned len,unsigned val)60 void bx_instr_inp2(Bit16u addr, unsigned len, unsigned val) {}
bx_instr_outp(Bit16u addr,unsigned len,unsigned val)61 void bx_instr_outp(Bit16u addr, unsigned len, unsigned val) {}
62 
bx_instr_lin_access(unsigned cpu,bx_address lin,bx_address phy,unsigned len,unsigned memtype,unsigned rw)63 void bx_instr_lin_access(unsigned cpu, bx_address lin, bx_address phy, unsigned len, unsigned memtype, unsigned rw) {}
bx_instr_phy_access(unsigned cpu,bx_address phy,unsigned len,unsigned memtype,unsigned rw)64 void bx_instr_phy_access(unsigned cpu,                 bx_address phy, unsigned len, unsigned memtype, unsigned rw) {}
65 
bx_instr_wrmsr(unsigned cpu,unsigned addr,Bit64u value)66 void bx_instr_wrmsr(unsigned cpu, unsigned addr, Bit64u value) {}
67 
bx_instr_vmexit(unsigned cpu,Bit32u reason,Bit64u qualification)68 void bx_instr_vmexit(unsigned cpu, Bit32u reason, Bit64u qualification) {}
69 
70 #endif
71