From 77165ae17ffa3c93b333e52e633b6237b1aca996 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Jan 2019 21:16:38 -0800 Subject: [PATCH] systemc: Rename tlm .cpp files to .cc and add SConscripts. Change-Id: Ia30192b441dd34bc7165c6335386c88c0015fdf6 Reviewed-on: https://gem5-review.googlesource.com/c/15295 Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez --- .../tlm_2/tlm_generic_payload/SConscript | 32 +++++++++++++++++++ .../{tlm_gp.cpp => tlm_gp.cc} | 0 .../{tlm_phase.cpp => tlm_phase.cc} | 0 .../tlm_core/tlm_2/tlm_quantum/SConscript | 31 ++++++++++++++++++ ...obal_quantum.cpp => tlm_global_quantum.cc} | 0 src/systemc/tlm_utils/SConscript | 32 +++++++++++++++++++ ..._bases.cpp => convenience_socket_bases.cc} | 0 ...ns.cpp => instance_specific_extensions.cc} | 0 8 files changed, 95 insertions(+) create mode 100644 src/systemc/tlm_core/tlm_2/tlm_generic_payload/SConscript rename src/systemc/tlm_core/tlm_2/tlm_generic_payload/{tlm_gp.cpp => tlm_gp.cc} (100%) rename src/systemc/tlm_core/tlm_2/tlm_generic_payload/{tlm_phase.cpp => tlm_phase.cc} (100%) create mode 100644 src/systemc/tlm_core/tlm_2/tlm_quantum/SConscript rename src/systemc/tlm_core/tlm_2/tlm_quantum/{tlm_global_quantum.cpp => tlm_global_quantum.cc} (100%) create mode 100644 src/systemc/tlm_utils/SConscript rename src/systemc/tlm_utils/{convenience_socket_bases.cpp => convenience_socket_bases.cc} (100%) rename src/systemc/tlm_utils/{instance_specific_extensions.cpp => instance_specific_extensions.cc} (100%) diff --git a/src/systemc/tlm_core/tlm_2/tlm_generic_payload/SConscript b/src/systemc/tlm_core/tlm_2/tlm_generic_payload/SConscript new file mode 100644 index 000000000..0d6557931 --- /dev/null +++ b/src/systemc/tlm_core/tlm_2/tlm_generic_payload/SConscript @@ -0,0 +1,32 @@ +# Copyright 2018 Google, Inc. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer; +# redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution; +# neither the name of the copyright holders nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors: Gabe Black + +Import('*') + +if env['USE_SYSTEMC']: + Source('tlm_gp.cc') + Source('tlm_phase.cc') diff --git a/src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_gp.cpp b/src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_gp.cc similarity index 100% rename from src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_gp.cpp rename to src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_gp.cc diff --git a/src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_phase.cpp b/src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_phase.cc similarity index 100% rename from src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_phase.cpp rename to src/systemc/tlm_core/tlm_2/tlm_generic_payload/tlm_phase.cc diff --git a/src/systemc/tlm_core/tlm_2/tlm_quantum/SConscript b/src/systemc/tlm_core/tlm_2/tlm_quantum/SConscript new file mode 100644 index 000000000..bdfc2a034 --- /dev/null +++ b/src/systemc/tlm_core/tlm_2/tlm_quantum/SConscript @@ -0,0 +1,31 @@ +# Copyright 2018 Google, Inc. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer; +# redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution; +# neither the name of the copyright holders nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors: Gabe Black + +Import('*') + +if env['USE_SYSTEMC']: + Source('tlm_global_quantum.cc') diff --git a/src/systemc/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.cpp b/src/systemc/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.cc similarity index 100% rename from src/systemc/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.cpp rename to src/systemc/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.cc diff --git a/src/systemc/tlm_utils/SConscript b/src/systemc/tlm_utils/SConscript new file mode 100644 index 000000000..354bd1f54 --- /dev/null +++ b/src/systemc/tlm_utils/SConscript @@ -0,0 +1,32 @@ +# Copyright 2018 Google, Inc. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer; +# redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution; +# neither the name of the copyright holders nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Authors: Gabe Black + +Import('*') + +if env['USE_SYSTEMC']: + Source('convenience_socket_bases.cc') + Source('instance_specific_extensions.cc') diff --git a/src/systemc/tlm_utils/convenience_socket_bases.cpp b/src/systemc/tlm_utils/convenience_socket_bases.cc similarity index 100% rename from src/systemc/tlm_utils/convenience_socket_bases.cpp rename to src/systemc/tlm_utils/convenience_socket_bases.cc diff --git a/src/systemc/tlm_utils/instance_specific_extensions.cpp b/src/systemc/tlm_utils/instance_specific_extensions.cc similarity index 100% rename from src/systemc/tlm_utils/instance_specific_extensions.cpp rename to src/systemc/tlm_utils/instance_specific_extensions.cc -- 2.30.2