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:
2024-04-24 10:49:56 +02:00
parent cf07fb6c0a
commit db74e7549a
13 changed files with 5 additions and 24 deletions

View File

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

View File

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

View File

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