Added const to Bochs instr callback
This commit is contained in:
parent
2172e96654
commit
382901c273
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.cc,v 1.21 2008-02-05 22:57:42 sshwarts Exp $
|
||||
// $Id: instrument.cc,v 1.22 2008-03-03 15:09:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -164,7 +164,7 @@ void bx_instr_far_branch(unsigned cpu, unsigned what, Bit16u new_cs, bx_address
|
||||
branch_taken(cpu, new_eip);
|
||||
}
|
||||
|
||||
void bx_instr_opcode(unsigned cpu, Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64)
|
||||
void bx_instr_opcode(unsigned cpu, const Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64)
|
||||
{
|
||||
if (!active) return;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.h,v 1.24 2008-02-05 22:57:42 sshwarts Exp $
|
||||
// $Id: instrument.h,v 1.25 2008-03-03 15:09:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -67,7 +67,7 @@ void bx_instr_cnear_branch_not_taken(unsigned cpu);
|
||||
void bx_instr_ucnear_branch(unsigned cpu, unsigned what, bx_address new_eip);
|
||||
void bx_instr_far_branch(unsigned cpu, unsigned what, Bit16u new_cs, bx_address new_eip);
|
||||
|
||||
void bx_instr_opcode(unsigned cpu, Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_opcode(unsigned cpu, const Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_fetch_decode_completed(unsigned cpu, bxInstruction_c *i);
|
||||
|
||||
void bx_instr_prefix(unsigned cpu, Bit8u prefix);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.cc,v 1.16 2008-02-05 22:57:42 sshwarts Exp $
|
||||
// $Id: instrument.cc,v 1.17 2008-03-03 15:09:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -128,7 +128,7 @@ void bxInstrumentation::bx_instr_far_branch(unsigned what, Bit16u new_cs, bx_add
|
||||
branch_taken(new_eip);
|
||||
}
|
||||
|
||||
void bxInstrumentation::bx_instr_opcode(Bit8u *opcode_bytes, unsigned len, bx_bool is32, bx_bool is64)
|
||||
void bxInstrumentation::bx_instr_opcode(const Bit8u *opcode_bytes, unsigned len, bx_bool is32, bx_bool is64)
|
||||
{
|
||||
if (!active) return;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.h,v 1.22 2008-02-05 22:57:42 sshwarts Exp $
|
||||
// $Id: instrument.h,v 1.23 2008-03-03 15:09:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -108,7 +108,7 @@ public:
|
||||
void bx_instr_ucnear_branch(unsigned what, bx_address new_eip);
|
||||
void bx_instr_far_branch(unsigned what, Bit16u new_cs, bx_address new_eip);
|
||||
|
||||
void bx_instr_opcode(Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_opcode(const Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_fetch_decode_completed(bxInstruction_c *i);
|
||||
|
||||
void bx_instr_prefix(Bit8u prefix);
|
||||
|
@ -79,7 +79,7 @@ The callback is called each time, when currently executed instruction is an
|
||||
unconditional far branch (always taken).
|
||||
|
||||
|
||||
void bx_instr_opcode(unsigned cpu, Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_opcode(unsigned cpu, const Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
|
||||
The callback is called each time, when Bochs starts to decode a new
|
||||
instruction. Through this callback function Bochs could provide an opcode of
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.cc,v 1.23 2008-01-18 09:38:54 sshwarts Exp $
|
||||
// $Id: instrument.cc,v 1.24 2008-03-03 15:09:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -46,7 +46,7 @@ void bx_instr_cnear_branch_not_taken(unsigned cpu) {}
|
||||
void bx_instr_ucnear_branch(unsigned cpu, unsigned what, bx_address new_eip) {}
|
||||
void bx_instr_far_branch(unsigned cpu, unsigned what, Bit16u new_cs, bx_address new_eip) {}
|
||||
|
||||
void bx_instr_opcode(unsigned cpu, Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64) {}
|
||||
void bx_instr_opcode(unsigned cpu, const Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64) {}
|
||||
void bx_instr_fetch_decode_completed(unsigned cpu, bxInstruction_c *i) {}
|
||||
|
||||
void bx_instr_prefix(unsigned cpu, Bit8u prefix) {}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.h,v 1.29 2008-02-05 22:57:42 sshwarts Exp $
|
||||
// $Id: instrument.h,v 1.30 2008-03-03 15:09:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -75,7 +75,7 @@ void bx_instr_cnear_branch_not_taken(unsigned cpu);
|
||||
void bx_instr_ucnear_branch(unsigned cpu, unsigned what, bx_address new_eip);
|
||||
void bx_instr_far_branch(unsigned cpu, unsigned what, Bit16u new_cs, bx_address new_eip);
|
||||
|
||||
void bx_instr_opcode(unsigned cpu, Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_opcode(unsigned cpu, const Bit8u *opcode, unsigned len, bx_bool is32, bx_bool is64);
|
||||
void bx_instr_fetch_decode_completed(unsigned cpu, bxInstruction_c *i);
|
||||
|
||||
void bx_instr_prefix(unsigned cpu, Bit8u prefix);
|
||||
|
Loading…
Reference in New Issue
Block a user