Update to SystemC 3.0.1
Fix some of the deprecation warnings introduced in the new version such as the removal of SC_HAS_PROCESS.
This commit is contained in:
@@ -116,13 +116,10 @@ if (DRAMSYS_USE_FETCH_CONTENT)
|
||||
|
||||
FetchContent_Declare(
|
||||
SystemCLanguage
|
||||
URL https://github.com/accellera-official/systemc/archive/refs/tags/2.3.4.tar.gz
|
||||
URL https://github.com/accellera-official/systemc/archive/refs/tags/3.0.1.tar.gz
|
||||
OVERRIDE_FIND_PACKAGE
|
||||
)
|
||||
|
||||
# TODO: remove with SystemC 3.0
|
||||
set(CMAKE_CXX_STANDARD ${CMAKE_CXX_STANDARD} CACHE STRING "")
|
||||
|
||||
FetchContent_MakeAvailable(SystemCLanguage)
|
||||
|
||||
# Set include directories to SYSTEM to suppress warnings
|
||||
|
||||
@@ -76,7 +76,6 @@ public:
|
||||
const SimConfig& simConfig,
|
||||
const AddressDecoder& addressDecoder,
|
||||
TlmRecorder* tlmRecorder);
|
||||
SC_HAS_PROCESS(Controller);
|
||||
|
||||
[[nodiscard]] bool idle() const { return totalNumberOfPayloads == 0; }
|
||||
void registerIdleCallback(std::function<void()> idleCallback);
|
||||
|
||||
@@ -73,7 +73,6 @@ protected:
|
||||
const McConfig& mcConfig,
|
||||
const MemSpec& memSpec,
|
||||
const AddressDecoder& addressDecoder);
|
||||
SC_HAS_PROCESS(Arbiter);
|
||||
|
||||
void end_of_elaboration() override;
|
||||
|
||||
@@ -117,7 +116,6 @@ public:
|
||||
const McConfig& mcConfig,
|
||||
const MemSpec& memSpec,
|
||||
const AddressDecoder& addressDecoder);
|
||||
SC_HAS_PROCESS(ArbiterSimple);
|
||||
|
||||
private:
|
||||
void end_of_elaboration() override;
|
||||
@@ -134,7 +132,6 @@ public:
|
||||
const McConfig& mcConfig,
|
||||
const MemSpec& memSpec,
|
||||
const AddressDecoder& addressDecoder);
|
||||
SC_HAS_PROCESS(ArbiterFifo);
|
||||
|
||||
private:
|
||||
void end_of_elaboration() override;
|
||||
@@ -158,7 +155,6 @@ public:
|
||||
const McConfig& mcConfig,
|
||||
const MemSpec& memSpec,
|
||||
const AddressDecoder& addressDecoder);
|
||||
SC_HAS_PROCESS(ArbiterReorder);
|
||||
|
||||
private:
|
||||
void end_of_elaboration() override;
|
||||
|
||||
@@ -71,7 +71,6 @@ class DRAMSys : public sc_core::sc_module
|
||||
public:
|
||||
tlm_utils::multi_passthrough_target_socket<DRAMSys> tSocket{"DRAMSys_tSocket"};
|
||||
|
||||
SC_HAS_PROCESS(DRAMSys);
|
||||
DRAMSys(const sc_core::sc_module_name& name, const Config::Configuration& config);
|
||||
|
||||
~DRAMSys() override;
|
||||
|
||||
@@ -93,7 +93,6 @@ public:
|
||||
const SimConfig& simConfig,
|
||||
const MemSpec& memSpec,
|
||||
TlmRecorder* tlmRecorder);
|
||||
SC_HAS_PROCESS(Dram);
|
||||
|
||||
Dram(const Dram&) = delete;
|
||||
Dram(Dram&&) = delete;
|
||||
|
||||
@@ -63,7 +63,6 @@ public:
|
||||
sc_core::sc_time cycleTime,
|
||||
std::size_t hitCycles,
|
||||
DRAMSys::MemoryManager& memoryManager);
|
||||
SC_HAS_PROCESS(Cache);
|
||||
|
||||
private:
|
||||
void peqCallback(tlm::tlm_generic_payload& trans, const tlm::tlm_phase& phase);
|
||||
|
||||
@@ -55,7 +55,6 @@ public:
|
||||
tlm_utils::simple_target_socket<EccModule> tSocket;
|
||||
|
||||
EccModule(sc_core::sc_module_name const& name, DRAMSys::AddressDecoder const& addressDecoder);
|
||||
SC_HAS_PROCESS(EccModule);
|
||||
|
||||
private:
|
||||
using Block = uint64_t;
|
||||
|
||||
@@ -60,7 +60,6 @@ public:
|
||||
std::optional<unsigned int> maxPendingWriteRequests,
|
||||
std::function<void()> transactionFinished,
|
||||
std::function<void()> terminate);
|
||||
SC_HAS_PROCESS(RequestIssuer);
|
||||
|
||||
uint64_t totalRequests() { return producer->totalRequests(); };
|
||||
|
||||
|
||||
@@ -83,7 +83,6 @@ struct BlockingInitiator : sc_core::sc_module
|
||||
SC_THREAD(readAccess);
|
||||
SC_THREAD(writeAccess);
|
||||
}
|
||||
SC_HAS_PROCESS(BlockingInitiator);
|
||||
|
||||
void readAccess()
|
||||
{
|
||||
|
||||
1
tests/tests_simulator/cache/ListInitiator.h
vendored
1
tests/tests_simulator/cache/ListInitiator.h
vendored
@@ -43,7 +43,6 @@ class ListInitiator : public sc_core::sc_module
|
||||
public:
|
||||
tlm_utils::simple_initiator_socket<ListInitiator> iSocket;
|
||||
|
||||
SC_HAS_PROCESS(ListInitiator);
|
||||
ListInitiator(const sc_core::sc_module_name& name, DRAMSys::MemoryManager& memoryManager);
|
||||
|
||||
struct TestTransactionData
|
||||
|
||||
1
tests/tests_simulator/cache/TargetMemory.h
vendored
1
tests/tests_simulator/cache/TargetMemory.h
vendored
@@ -46,7 +46,6 @@ class TargetMemory : public sc_core::sc_module
|
||||
{
|
||||
public:
|
||||
tlm_utils::simple_target_socket<TargetMemory> tSocket;
|
||||
SC_HAS_PROCESS(TargetMemory);
|
||||
TargetMemory(const sc_core::sc_module_name& name,
|
||||
sc_core::sc_time acceptDelay,
|
||||
sc_core::sc_time memoryLatency,
|
||||
|
||||
5
tests/tests_simulator/cache/tests_cache.cpp
vendored
5
tests/tests_simulator/cache/tests_cache.cpp
vendored
@@ -44,7 +44,10 @@
|
||||
class SystemCTest : public testing::Test
|
||||
{
|
||||
public:
|
||||
~SystemCTest() override { sc_core::sc_get_curr_simcontext()->reset(); }
|
||||
~SystemCTest() override {
|
||||
sc_core::sc_curr_simcontext = new sc_core::sc_simcontext();
|
||||
sc_core::sc_default_global_context = sc_core::sc_curr_simcontext;
|
||||
}
|
||||
};
|
||||
|
||||
class DirectMappedCache : public SystemCTest
|
||||
|
||||
@@ -14,11 +14,5 @@
|
||||
},
|
||||
"systemc"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"name": "systemc",
|
||||
"version": "2.3.4"
|
||||
}
|
||||
],
|
||||
"builtin-baseline": "ce613c41372b23b1f51333815feb3edd87ef8a8b"
|
||||
}
|
||||
Reference in New Issue
Block a user