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

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

View File

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

View File

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

View File

@@ -93,7 +93,6 @@ public:
const SimConfig& simConfig,
const MemSpec& memSpec,
TlmRecorder* tlmRecorder);
SC_HAS_PROCESS(Dram);
Dram(const Dram&) = delete;
Dram(Dram&&) = delete;

View File

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

View File

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

View File

@@ -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(); };