[gem5-dev] Change in gem5/gem5[master]: systemc: Add deprecated default time unit management functions.

2018-08-21 Thread Gabe Black (Gerrit)
Gabe Black has submitted this change and it was merged. (  
https://gem5-review.googlesource.com/c/public/gem5/+/11270 )


Change subject: systemc: Add deprecated default time unit management  
functions.

..

systemc: Add deprecated default time unit management functions.

Having default time units is deprecated, and so are the functions that
manage them.

Change-Id: Ie21f9a5fca9868dd4f0adcd9f32c568fbec1fa72
Reviewed-on: https://gem5-review.googlesource.com/11270
Reviewed-by: Gabe Black 
Maintainer: Gabe Black 
---
M src/systemc/core/sc_time.cc
M src/systemc/ext/core/_using.hh
M src/systemc/ext/core/sc_time.hh
3 files changed, 19 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 0228957..383d1d4 100644
--- a/src/systemc/core/sc_time.cc
+++ b/src/systemc/core/sc_time.cc
@@ -229,4 +229,17 @@
 return *(const sc_time *)nullptr;
 }

+void
+sc_set_default_time_unit(double, sc_time_unit)
+{
+warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
+sc_time
+sc_get_default_time_unit()
+{
+warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+return *(sc_time *)nullptr;
+}
+
 } // namespace sc_core
diff --git a/src/systemc/ext/core/_using.hh b/src/systemc/ext/core/_using.hh
index 32cbd70..331e3dd 100644
--- a/src/systemc/ext/core/_using.hh
+++ b/src/systemc/ext/core/_using.hh
@@ -140,5 +140,7 @@
 using sc_core::sc_set_time_resolution;
 using sc_core::sc_get_time_resolution;
 using sc_core::sc_max_time;
+using sc_core::sc_get_default_time_unit;
+using sc_core::sc_set_default_time_unit;

 #endif  //__SYSTEMC_EXT_CORE__USING_HH__
diff --git a/src/systemc/ext/core/sc_time.hh  
b/src/systemc/ext/core/sc_time.hh

index 456d59e..32f7ead 100644
--- a/src/systemc/ext/core/sc_time.hh
+++ b/src/systemc/ext/core/sc_time.hh
@@ -93,6 +93,10 @@
 sc_time sc_get_time_resolution();
 const sc_time _max_time();

+// Deprecated
+void sc_set_default_time_unit(double, sc_time_unit);
+sc_time sc_get_default_time_unit();
+
 } // namespace sc_core

 #endif  //__SYSTEMC_EXT_CORE_SC_TIME_HH__

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/11270
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: Ie21f9a5fca9868dd4f0adcd9f32c568fbec1fa72
Gerrit-Change-Number: 11270
Gerrit-PatchSet: 6
Gerrit-Owner: Gabe Black 
Gerrit-Reviewer: Andreas Sandberg 
Gerrit-Reviewer: Gabe Black 
Gerrit-Reviewer: Giacomo Travaglini 
Gerrit-Reviewer: Jason Lowe-Power 
Gerrit-Reviewer: Matthias Jung 
Gerrit-MessageType: merged
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in gem5/gem5[master]: systemc: Add deprecated default time unit management functions.

2018-06-16 Thread Gabe Black (Gerrit)
Gabe Black has uploaded this change for review. (  
https://gem5-review.googlesource.com/11270



Change subject: systemc: Add deprecated default time unit management  
functions.

..

systemc: Add deprecated default time unit management functions.

Having default time units is deprecated, and so are the functions that
manage them.

Change-Id: Ie21f9a5fca9868dd4f0adcd9f32c568fbec1fa72
---
M src/systemc/core/sc_time.cc
M src/systemc/ext/core/_using.hh
M src/systemc/ext/core/sc_time.hh
3 files changed, 19 insertions(+), 0 deletions(-)



diff --git a/src/systemc/core/sc_time.cc b/src/systemc/core/sc_time.cc
index 0228957..383d1d4 100644
--- a/src/systemc/core/sc_time.cc
+++ b/src/systemc/core/sc_time.cc
@@ -229,4 +229,17 @@
 return *(const sc_time *)nullptr;
 }

+void
+sc_set_default_time_unit(double, sc_time_unit)
+{
+warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
+sc_time
+sc_get_default_time_unit()
+{
+warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+return *(sc_time *)nullptr;
+}
+
 } // namespace sc_core
diff --git a/src/systemc/ext/core/_using.hh b/src/systemc/ext/core/_using.hh
index 32cbd70..331e3dd 100644
--- a/src/systemc/ext/core/_using.hh
+++ b/src/systemc/ext/core/_using.hh
@@ -140,5 +140,7 @@
 using sc_core::sc_set_time_resolution;
 using sc_core::sc_get_time_resolution;
 using sc_core::sc_max_time;
+using sc_core::sc_get_default_time_unit;
+using sc_core::sc_set_default_time_unit;

 #endif  //__SYSTEMC_EXT_CORE__USING_HH__
diff --git a/src/systemc/ext/core/sc_time.hh  
b/src/systemc/ext/core/sc_time.hh

index 456d59e..32f7ead 100644
--- a/src/systemc/ext/core/sc_time.hh
+++ b/src/systemc/ext/core/sc_time.hh
@@ -93,6 +93,10 @@
 sc_time sc_get_time_resolution();
 const sc_time _max_time();

+// Deprecated
+void sc_set_default_time_unit(double, sc_time_unit);
+sc_time sc_get_default_time_unit();
+
 } // namespace sc_core

 #endif  //__SYSTEMC_EXT_CORE_SC_TIME_HH__

--
To view, visit https://gem5-review.googlesource.com/11270
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: Ie21f9a5fca9868dd4f0adcd9f32c568fbec1fa72
Gerrit-Change-Number: 11270
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black 
Gerrit-MessageType: newchange
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev