Fail* now builds with hsc-simple as experiment for gem5.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1503 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -37,7 +37,6 @@ if(BUILD_BOCHS)
|
||||
include_directories(simulators/bochs/instrument/stubs simulators/bochs)
|
||||
elseif(BUILD_GEM5)
|
||||
include_directories(simulators/gem5/src simulators/gem5/build/ARM)
|
||||
add_definitions(-std=c++0x)
|
||||
elseif(BUILD_OVP)
|
||||
add_subdirectory(simulators/ovp)
|
||||
endif(BUILD_BOCHS)
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
#ifdef CONFIG_EVENT_BREAKPOINTS
|
||||
|
||||
#include "bochs.h"
|
||||
@ -28,5 +29,6 @@ aspect Breakpoints {
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_BREAKPOINTS
|
||||
#endif // BUILD_BOCHS
|
||||
|
||||
#endif // __BREAKPOINTS_AH__
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
#ifdef CONFIG_SR_RESTORE
|
||||
|
||||
#include <iostream>
|
||||
@ -23,5 +24,6 @@ aspect RestoreState {
|
||||
};
|
||||
|
||||
#endif // CONFIG_SR_RESTORE
|
||||
#endif // BUILD_BOCHS
|
||||
|
||||
#endif // __RESTORE_STATE_AH__
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
#ifdef CONFIG_SR_SAVE
|
||||
|
||||
#include "bochs.h"
|
||||
@ -29,5 +30,6 @@ aspect SaveState {
|
||||
};
|
||||
|
||||
#endif // CONFIG_SR_SAVE
|
||||
#endif // BUILD_BOCHS
|
||||
|
||||
#endif // _SAVE_STATE_AH__
|
||||
|
||||
@ -7,14 +7,14 @@
|
||||
#define __GEM5_CONFIG_HPP__
|
||||
|
||||
#include "base/types.hh"
|
||||
#include "arch/arm/registers.hh"
|
||||
//#include "arch/arm/registers.hh"
|
||||
|
||||
namespace fail {
|
||||
|
||||
typedef Addr guest_address_t; //!< the guest memory address type
|
||||
// TODO: Set Host Address Type
|
||||
typedef void* host_address_t; //!< the host memory address type
|
||||
typedef ArmISA::AnyReg register_data_t; //!< register data type (32 bit)
|
||||
typedef uint64_t register_data_t; //!< register data type (gem5 always uses 64 bit for registers)
|
||||
typedef int timer_t; //!< type of timer IDs
|
||||
|
||||
} // end-of-namespace: fail
|
||||
|
||||
@ -7,8 +7,7 @@ env.Append(CPPPATH=Dir('../../../../../src/core/'))
|
||||
env.Append(CPPPATH=Dir('../../../../../build/src/core/'))
|
||||
|
||||
env.Append(LIBPATH=Dir('../../../../../build/lib/'))
|
||||
#env.Append(LIBS=['fail', 'sal', 'comm', 'cpn', 'efw', 'util', 'pthread'])
|
||||
env.Append(LIBS=['fail'])
|
||||
env.Append(LIBS=['sal', 'comm', 'cpn', 'efw', 'util', 'pcl', 'hsc-simple'])
|
||||
|
||||
|
||||
SimObject('FailGem5Device.py')
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include "experiment.hpp"
|
||||
#include "sal/SALInst.hpp"
|
||||
#include "sal/bochs/BochsRegister.hpp"
|
||||
//#include "sal/bochs/BochsRegister.hpp"
|
||||
#include "sal/Listener.hpp"
|
||||
#include "util/Logger.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
Reference in New Issue
Block a user