diff options
author | Gabe Black <gabeblack@google.com> | 2018-12-08 02:05:34 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-01-09 01:32:29 +0000 |
commit | 275d2779656fd2dd72762b2eb16a738d1b3b2b18 (patch) | |
tree | 0c15a93a00f8c8529bbf456843bb137629fbe8a9 /src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h | |
parent | 584a1f6723f8cc20319b6b594d70b19056fb7679 (diff) | |
download | gem5-275d2779656fd2dd72762b2eb16a738d1b3b2b18.tar.xz |
systemc: Fix style issues in the TLM header files.
Change-Id: Id12ffb9b56b3887afcf30120f81ce5eb75a5987b
Reviewed-on: https://gem5-review.googlesource.com/c/15057
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h')
-rw-r--r-- | src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h | 76 |
1 files changed, 35 insertions, 41 deletions
diff --git a/src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h b/src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h index 5c08acf28..74ae57aa5 100644 --- a/src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h +++ b/src/systemc/ext/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h @@ -17,12 +17,13 @@ *****************************************************************************/ -#ifndef TLM_CORE_TLM2_TLM_GLOBAL_QUANTUM_H_INCLUDED_ -#define TLM_CORE_TLM2_TLM_GLOBAL_QUANTUM_H_INCLUDED_ +#ifndef __SYSTEMC_EXT_TLM_CORE_TLM_2_TLM_QUANTUM_TLM_GLOBAL_QUANTUM_H__ +#define __SYSTEMC_EXT_TLM_CORE_TLM_2_TLM_QUANTUM_TLM_GLOBAL_QUANTUM_H__ -#include "sysc/kernel/sc_time.h" +#include <systemc> -namespace tlm { +namespace tlm +{ // // tlm_global_quantum class @@ -38,45 +39,38 @@ namespace tlm { // the global quantum is set. // -class SC_API tlm_global_quantum +class tlm_global_quantum { -public: - // - // Returns a reference to the tlm_global_quantum singleton - // - static tlm_global_quantum& instance(); - -public: - - // - // Setter/getter for the global quantum - // - void set(const sc_core::sc_time& t) - { - m_global_quantum = t; - } - - const sc_core::sc_time& get() const - { - return m_global_quantum; - } - - // - // This function will calculate the maximum value for the next local - // quantum for an initiator. All initiators should synchronize on - // integer multiples of the global quantum value. The value for the - // local quantum of an initiator can be smaller, but should never be - // greater than the value returned by this method. - // - sc_core::sc_time compute_local_quantum(); - -protected: - tlm_global_quantum(); - -protected: - sc_core::sc_time m_global_quantum; + public: + // + // Returns a reference to the tlm_global_quantum singleton + // + static tlm_global_quantum &instance(); + + public: + + // + // Setter/getter for the global quantum + // + void set(const sc_core::sc_time &t) { m_global_quantum = t; } + const sc_core::sc_time &get() const { return m_global_quantum; } + + // + // This function will calculate the maximum value for the next local + // quantum for an initiator. All initiators should synchronize on + // integer multiples of the global quantum value. The value for the + // local quantum of an initiator can be smaller, but should never be + // greater than the value returned by this method. + // + sc_core::sc_time compute_local_quantum(); + + protected: + tlm_global_quantum(); + + protected: + sc_core::sc_time m_global_quantum; }; } // namespace tlm -#endif // TLM_CORE_TLM2_TLM_GLOBAL_QUANTUM_H_INCLUDED_ +#endif /* __SYSTEMC_EXT_TLM_CORE_TLM_2_TLM_QUANTUM_TLM_GLOBAL_QUANTUM_H__ */ |