Gabe Black has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/11273 )
Change subject: systemc: Add some deprecated sc_time factory methods.
......................................................................
systemc: Add some deprecated sc_time factory methods.
Change-Id: I0d9a7040a48b9f0d0079e9daecaf44ea78c186de
Reviewed-on: https://gem5-review.googlesource.com/11273
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/systemc/core/sc_time.cc
M src/systemc/ext/core/sc_time.hh
2 files changed, 26 insertions(+), 0 deletions(-)
Approvals:
Gabe Black: Looks good to me, approved; Looks good to me, approved
diff --git a/src/systemc/core/sc_time.cc b/src/systemc/core/sc_time.cc
index 383d1d4..5d6b634 100644
--- a/src/systemc/core/sc_time.cc
+++ b/src/systemc/core/sc_time.cc
@@ -158,6 +158,27 @@
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 &)
{
diff --git a/src/systemc/ext/core/sc_time.hh
b/src/systemc/ext/core/sc_time.hh
index 32f7ead..d52ed81 100644
--- a/src/systemc/ext/core/sc_time.hh
+++ b/src/systemc/ext/core/sc_time.hh
@@ -75,6 +75,11 @@
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 &);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/11273
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I0d9a7040a48b9f0d0079e9daecaf44ea78c186de
Gerrit-Change-Number: 11273
Gerrit-PatchSet: 7
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthias Jung <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev