From: Stanislav S. <ssh...@us...> - 2002-09-29 16:58:57
|
Update of /cvsroot/bochs/bochs In directory usw-pr-cvs1:/tmp/cvs-serv23766 Modified Files: main.cc Log Message: Fixed the bug caused failures of instrumentation on SMP configuration ... Index: main.cc =================================================================== RCS file: /cvsroot/bochs/bochs/main.cc,v retrieving revision 1.151 retrieving revision 1.152 diff -u -d -r1.151 -r1.152 --- main.cc 25 Sep 2002 19:04:59 -0000 1.151 +++ main.cc 29 Sep 2002 16:58:54 -0000 1.152 @@ -1610,6 +1610,7 @@ BX_CPU(0)->init (BX_MEM(0)); #if BX_SUPPORT_APIC BX_CPU(0)->local_apic.set_id (0); + BX_INSTR_INIT(0); #endif BX_CPU(0)->reset(BX_RESET_HARDWARE); #else @@ -1638,6 +1639,7 @@ // assign apic ID from the index of this loop // if !BX_SUPPORT_APIC, this will not compile. BX_CPU(i)->local_apic.set_id (i); + BX_INSTR_INIT(i); BX_CPU(i)->reset(BX_RESET_HARDWARE); } #endif |