fastmodel: Update to c++14, and add some missing consts.
During the review for the CortexR52 model, a comment pointed out where two consts can be added. Also we switched gem5 over to c++14, but the project files for these other wrappers were still set to c++11. Change-Id: I5fecdc896b0290deadcd0f55ea1dfe3806a98177 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35857 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -107,8 +107,8 @@ class CortexA76Cluster : public SimObject
|
||||
scx::scx_set_parameter(evs->name() + std::string(".") + n, val);
|
||||
}
|
||||
|
||||
CortexA76 *getCore(int num) { return cores.at(num); }
|
||||
sc_core::sc_module *getEvs() { return evs; }
|
||||
CortexA76 *getCore(int num) const { return cores.at(num); }
|
||||
sc_core::sc_module *getEvs() const { return evs; }
|
||||
|
||||
CortexA76Cluster(Params &p);
|
||||
const Params ¶ms() { return _params; }
|
||||
|
||||
@@ -5,7 +5,7 @@ ACTIVE_CONFIG_LINUX = "gcc";
|
||||
ACTIVE_CONFIG_WINDOWS = "Win64-Release-VC2015";
|
||||
config "gcc"
|
||||
{
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-O3 -Wall -std=c++11 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-O3 -Wall -std=c++14 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_LINKER_SETTINGS = "-Wl,--no-undefined";
|
||||
BUILD_DIR = "./gcc";
|
||||
COMPILER = "gcc-6.4";
|
||||
|
||||
@@ -5,7 +5,7 @@ ACTIVE_CONFIG_LINUX = "gcc";
|
||||
ACTIVE_CONFIG_WINDOWS = "Win64-Release-VC2015";
|
||||
config "gcc"
|
||||
{
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-march=core2 -O3 -Wall -std=c++11 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-march=core2 -O3 -Wall -std=c++14 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_LINKER_SETTINGS = "-Wl,--no-undefined";
|
||||
BUILD_DIR = "./gcc";
|
||||
COMPILER = "gcc-6.4";
|
||||
|
||||
@@ -5,7 +5,7 @@ ACTIVE_CONFIG_LINUX = "gcc";
|
||||
ACTIVE_CONFIG_WINDOWS = "Win64-Release-VC2015";
|
||||
config "gcc"
|
||||
{
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-march=core2 -O3 -Wall -std=c++11 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-march=core2 -O3 -Wall -std=c++14 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_LINKER_SETTINGS = "-Wl,--no-undefined";
|
||||
BUILD_DIR = "./gcc";
|
||||
COMPILER = "gcc-6.4";
|
||||
|
||||
@@ -5,7 +5,7 @@ ACTIVE_CONFIG_LINUX = "gcc";
|
||||
ACTIVE_CONFIG_WINDOWS = "Win64-Release-VC2015";
|
||||
config "gcc"
|
||||
{
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-march=core2 -O3 -Wall -std=c++11 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-march=core2 -O3 -Wall -std=c++14 -Wno-deprecated -Wno-unused-function";
|
||||
ADDITIONAL_LINKER_SETTINGS = "-Wl,--no-undefined";
|
||||
BUILD_DIR = "./gcc";
|
||||
COMPILER = "gcc-6.4";
|
||||
|
||||
@@ -5,7 +5,7 @@ ACTIVE_CONFIG_LINUX = "gcc";
|
||||
ACTIVE_CONFIG_WINDOWS = "Win64-Release-VC2015";
|
||||
config "gcc"
|
||||
{
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-O3 -Wall -std=c++11 -Wno-deprecated -Wno-unused-function -I../../../../../";
|
||||
ADDITIONAL_COMPILER_SETTINGS = "-O3 -Wall -std=c++14 -Wno-deprecated -Wno-unused-function -I../../../../../";
|
||||
ADDITIONAL_LINKER_SETTINGS = "-Wl,--no-undefined";
|
||||
BUILD_DIR = "./gcc";
|
||||
COMPILER = "gcc-6.4";
|
||||
|
||||
Reference in New Issue
Block a user