Enable warnings in dev preset and fix them

This commit is contained in:
2023-05-16 09:44:42 +02:00
parent ad96e3ba14
commit a9759f51fa
67 changed files with 172 additions and 166 deletions

View File

@@ -87,7 +87,15 @@ protected:
PowerDownPolicyType::NoPowerDown,
ArbiterType::Simple,
128,
{}};
std::nullopt,
std::nullopt,
std::nullopt,
std::nullopt,
std::nullopt,
std::nullopt,
std::nullopt,
std::nullopt,
std::nullopt};
DRAMSys::Config::SimConfig simConfig{0,
false,

View File

@@ -47,8 +47,8 @@ protected:
addressMappingJson(nlohmann::json::parse(addressMappingJsonString).at("addressmapping")),
memSpecJson(nlohmann::json::parse(memSpecJsonString).at("memspec")),
addressMappingConfig(addressMappingJson.get<DRAMSys::Config::AddressMapping>()),
memSpec(memSpecConfig),
memSpecConfig(memSpecJson.get<DRAMSys::Config::MemSpec>()),
memSpec(memSpecConfig),
addressDecoder(addressMappingConfig, memSpec)
{
}

View File

@@ -49,9 +49,9 @@ TargetMemory::TargetMemory(const sc_core::sc_module_name &name,
: sc_core::sc_module(name),
tSocket("tSocket"),
bufferSize(bufferSize),
peq(this, &TargetMemory::peqCallback),
acceptDelay(acceptDelay),
memoryLatency(memoryLatency)
memoryLatency(memoryLatency),
peq(this, &TargetMemory::peqCallback)
{
tSocket.register_nb_transport_fw(this, &TargetMemory::nb_transport_fw);
@@ -155,7 +155,7 @@ void TargetMemory::sendEndRequest(tlm::tlm_generic_payload &trans)
bw_phase = tlm::END_REQ;
delay = acceptDelay;
tlm::tlm_sync_enum status = tSocket->nb_transport_bw(trans, bw_phase, delay);
tSocket->nb_transport_bw(trans, bw_phase, delay);
// Queue internal event to mark beginning of response
delay = delay + memoryLatency; // MEMORY Latency

View File

@@ -65,7 +65,7 @@ private:
void printBuffer(int max, int n);
static constexpr std::size_t SIZE = static_cast<const std::size_t>(64 * 1024);
static constexpr std::size_t SIZE = static_cast<std::size_t>(64 * 1024);
static constexpr std::size_t DEFAULT_BUFFER_SIZE = 8;
const std::size_t bufferSize;