The TLM headers were using the non-standard % operator on sc_time.
This change replaces that with % applied to the result of
sc_time::value().
Change-Id: Ic381eb1ada2c994d04e65896db178f58446944ae
Reviewed-on: https://gem5-review.googlesource.com/c/15062
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
if (m_global_quantum != sc_core::SC_ZERO_TIME) {
const sc_core::sc_time current = sc_core::sc_time_stamp();
const sc_core::sc_time g_quant = m_global_quantum;
- return g_quant - (current % g_quant);
+ return sc_core::sc_time::from_value(
+ g_quant.value() - (current.value() % g_quant.value()));
} else {
return sc_core::SC_ZERO_TIME;
}