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:
friemel
2012-08-22 14:20:26 +00:00
parent 15b5235987
commit ca17c793e7
7 changed files with 10 additions and 6 deletions

View File

@ -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)

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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

View File

@ -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')

View File

@ -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"