systemc: Add some deprecated sc_time factory methods.
Change-Id: I0d9a7040a48b9f0d0079e9daecaf44ea78c186de Reviewed-on: https://gem5-review.googlesource.com/11273 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -158,6 +158,27 @@ sc_time::print(std::ostream &) const
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
||||
sc_time
|
||||
sc_time::from_value(sc_dt::uint64)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
return sc_time();
|
||||
}
|
||||
|
||||
sc_time
|
||||
sc_time::from_seconds(double)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
return sc_time();
|
||||
}
|
||||
|
||||
sc_time
|
||||
sc_time::from_string(const char *str)
|
||||
{
|
||||
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
|
||||
return sc_time();
|
||||
}
|
||||
|
||||
const sc_time
|
||||
operator + (const sc_time &, const sc_time &)
|
||||
{
|
||||
|
||||
@@ -75,6 +75,11 @@ class sc_time
|
||||
sc_time &operator /= (double);
|
||||
|
||||
void print(std::ostream & =std::cout) const;
|
||||
|
||||
// Deprecated
|
||||
static sc_time from_value(sc_dt::uint64);
|
||||
static sc_time from_seconds(double);
|
||||
static sc_time from_string(const char *str);
|
||||
};
|
||||
|
||||
const sc_time operator + (const sc_time &, const sc_time &);
|
||||
|
||||
Reference in New Issue
Block a user