Forward declare DRAMPower

Forward declare DRAMPower so that it is no longer
part of the public API and programs that use DRAMSys
do not need to depend on it.
This commit is contained in:
2022-06-17 17:26:41 +02:00
parent 0c8da93417
commit 9d8601d691
3 changed files with 4 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ endif()
# Build:
target_include_directories(DRAMSysLibrary
PUBLIC src/common/third_party/DRAMPower/src/
PRIVATE src/common/third_party/DRAMPower/src/
PUBLIC $ENV{SYSTEMC_HOME}/include/
)

View File

@@ -56,6 +56,7 @@
#include "../../common/dramExtensions.h"
#include "../../common/utils.h"
#include "../../common/third_party/DRAMPower/src/MemCommand.h"
#include "../../common/third_party/DRAMPower/src/libdrampower/LibDRAMPower.h"
#include "../../controller/Command.h"
using namespace sc_core;

View File

@@ -47,7 +47,8 @@
#include <tlm_utils/simple_target_socket.h>
#include "../../configuration/Configuration.h"
#include "../../configuration/memspec/MemSpec.h"
#include "../../common/third_party/DRAMPower/src/libdrampower/LibDRAMPower.h"
class libDRAMPower;
class Dram : public sc_core::sc_module
{