Encapsulated gem5-specific code into wrapper functions to separate the build process (Fail: CMake, gem5: scons). Added some gem5-related FIXMEs. Another CMake related FIXME added. +some cosmetics. Change-Id: Id84b480127b1f13aed6a0ee97f3583f410d531c5
27 lines
668 B
C++
27 lines
668 B
C++
/**
|
|
* \brief Type definitions and configuration settings for
|
|
* the gem5 simulator.
|
|
*/
|
|
|
|
#ifndef __GEM5_CONFIG_HPP__
|
|
#define __GEM5_CONFIG_HPP__
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace fail {
|
|
|
|
/**
|
|
* The guest memory address type
|
|
*
|
|
* @note Keep this sync with src/base/types.hh:68 ("typedef uint64_t Addr;")
|
|
*/
|
|
typedef uint64_t guest_address_t;
|
|
// TODO: Set Host Address Type
|
|
typedef void* host_address_t; //!< the host memory address type
|
|
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
|
|
|
|
#endif // __GEM5_CONFIG_HPP__
|