[gem5-dev] Change in gem5/gem5[master]: systemc: Add the nonstandard time_stamp function.

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


Change subject: systemc: Add the nonstandard time_stamp function.
..

systemc: Add the nonstandard time_stamp function.

Change-Id: I608c390b125611e5b62483c7e8567bb5479df553
Reviewed-on: https://gem5-review.googlesource.com/11281
Reviewed-by: Gabe Black 
Maintainer: Gabe Black 
---
M src/systemc/channel/sc_clock.cc
M src/systemc/ext/channel/sc_clock.hh
2 files changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Gabe Black: Looks good to me, approved; Looks good to me, approved



diff --git a/src/systemc/channel/sc_clock.cc  
b/src/systemc/channel/sc_clock.cc

index 891c666..65f1f10 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -107,6 +107,13 @@
 return false;
 }

+const sc_time &
+sc_clock::time_stamp()
+{
+warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+return *(const sc_time *)nullptr;
+}
+
 const char *sc_clock::kind() const { return "sc_clock"; }

 void sc_clock::before_end_of_elaboration() {}
diff --git a/src/systemc/ext/channel/sc_clock.hh  
b/src/systemc/ext/channel/sc_clock.hh

index ae1f6c9..30895ce 100644
--- a/src/systemc/ext/channel/sc_clock.hh
+++ b/src/systemc/ext/channel/sc_clock.hh
@@ -71,6 +71,9 @@
 const sc_time _time() const;
 bool posedge_first() const;

+// Nonstandard
+static const sc_time _stamp();
+
 virtual const char *kind() const;

   protected:

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/11281
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: I608c390b125611e5b62483c7e8567bb5479df553
Gerrit-Change-Number: 11281
Gerrit-PatchSet: 7
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 the nonstandard time_stamp function.

2018-08-21 Thread Gabe Black (Gerrit)

Hello Jason Lowe-Power, Matthias Jung, Giacomo Travaglini, Andreas Sandberg,

I'd like you to reexamine a change. Please visit

https://gem5-review.googlesource.com/c/public/gem5/+/11281

to look at the new patch set (#6).

Change subject: systemc: Add the nonstandard time_stamp function.
..

systemc: Add the nonstandard time_stamp function.

Change-Id: I608c390b125611e5b62483c7e8567bb5479df553
---
M src/systemc/channel/sc_clock.cc
M src/systemc/ext/channel/sc_clock.hh
2 files changed, 10 insertions(+), 0 deletions(-)


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/11281
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: I608c390b125611e5b62483c7e8567bb5479df553
Gerrit-Change-Number: 11281
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: newpatchset
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in gem5/gem5[master]: systemc: Add the nonstandard time_stamp function.

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



Change subject: systemc: Add the nonstandard time_stamp function.
..

systemc: Add the nonstandard time_stamp function.

Change-Id: I608c390b125611e5b62483c7e8567bb5479df553
---
M src/systemc/channel/sc_clock.cc
M src/systemc/ext/channel/sc_clock.hh
2 files changed, 10 insertions(+), 0 deletions(-)



diff --git a/src/systemc/channel/sc_clock.cc  
b/src/systemc/channel/sc_clock.cc

index 891c666..65f1f10 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -107,6 +107,13 @@
 return false;
 }

+const sc_time &
+sc_clock::time_stamp()
+{
+warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+return *(const sc_time *)nullptr;
+}
+
 const char *sc_clock::kind() const { return "sc_clock"; }

 void sc_clock::before_end_of_elaboration() {}
diff --git a/src/systemc/ext/channel/sc_clock.hh  
b/src/systemc/ext/channel/sc_clock.hh

index ae1f6c9..30895ce 100644
--- a/src/systemc/ext/channel/sc_clock.hh
+++ b/src/systemc/ext/channel/sc_clock.hh
@@ -71,6 +71,9 @@
 const sc_time _time() const;
 bool posedge_first() const;

+// Nonstandard
+static const sc_time _stamp();
+
 virtual const char *kind() const;

   protected:

--
To view, visit https://gem5-review.googlesource.com/11281
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: I608c390b125611e5b62483c7e8567bb5479df553
Gerrit-Change-Number: 11281
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