More update for instrumentation examples (x86-64 support)
This commit is contained in:
parent
2ff8b93f10
commit
cff3464bc3
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.cc,v 1.14 2006-01-16 19:47:18 sshwarts Exp $
|
||||
// $Id: instrument.cc,v 1.15 2006-01-16 19:53:11 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -142,7 +142,7 @@ static void branch_taken(unsigned cpu, bx_address new_eip)
|
||||
if (!active || !instruction[cpu].valid) return;
|
||||
|
||||
// find linear address
|
||||
Bit32u laddr = BX_CPU(cpu)->get_segment_base(BX_SEG_REG_CS) + new_eip;
|
||||
bx_address laddr = BX_CPU(cpu)->get_segment_base(BX_SEG_REG_CS) + new_eip;
|
||||
|
||||
instruction[cpu].is_branch = 1;
|
||||
instruction[cpu].is_taken = 1;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: instrument.cc,v 1.10 2006-01-16 19:47:18 sshwarts Exp $
|
||||
// $Id: instrument.cc,v 1.11 2006-01-16 19:53:11 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -106,7 +106,7 @@ void bxInstrumentation::branch_taken(bx_address new_eip)
|
||||
if (!active || !valid) return;
|
||||
|
||||
// find linear address
|
||||
Bit32u laddr = BX_CPU(cpu_id)->get_segment_base(BX_SEG_REG_CS) + new_eip;
|
||||
bx_address laddr = BX_CPU(cpu_id)->get_segment_base(BX_SEG_REG_CS) + new_eip;
|
||||
|
||||
is_branch = 1;
|
||||
is_taken = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user