EgtMachKernel 2.6i1 :

- introduzione secondo simulatore sperimentale per macchine multiprocesso.
This commit is contained in:
Dario Sassi
2024-09-05 08:29:20 +02:00
parent ac72518e44
commit 4b835a27be
17 changed files with 5411 additions and 2635 deletions
+8 -2
View File
@@ -16,7 +16,8 @@
#include "DllMain.h"
#include "MachMgr.h"
#include "MachConst.h"
#include "Simulator.h"
#include "SimulatorSP.h"
#include "SimulatorMP.h"
using namespace std ;
@@ -27,7 +28,12 @@ MachMgr::SimInit( void)
// alloco o rialloco il simulatore
if ( m_pSimul != nullptr)
delete m_pSimul ;
m_pSimul = new( nothrow) Simulator ;
if ( GetCurrMachine() == nullptr)
return false ;
//if ( GetCurrMachine()->GetMultiProcess())
// m_pSimul = CreateSimulatorMP() ;
//else
m_pSimul = CreateSimulatorSP() ;
if ( m_pSimul == nullptr)
return false ;
// lo inizializzo