Skip to content

Commit e5b8d05

Browse files
ShadowBearVRtimothytrippel
authored andcommitted
[c++] Upgrade to C++17 Support
This change updates the C++ language version to C++17, project wide. Signed-off-by: Collin MacDonald <cmacd@google.com>
1 parent 0a5e2fc commit e5b8d05

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dv/cs_registers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ OBJS := $(patsubst %.$(SRCEXT),$(OBJDIR)/%.o,$(SRCS))
1717

1818
DEBUG = -g
1919
INCLUDES = -I./env -I./rst_driver -I./reg_driver -I./model
20-
CFLAGS = -std=c++14 -m64 -fPIC -Wall -pedantic $(DEBUG) $(INCLUDES)
20+
CFLAGS = -std=c++17 -m64 -fPIC -Wall -pedantic $(DEBUG) $(INCLUDES)
2121
LDFLAGS = -shared
2222

2323
CC = $(CXX)

dv/cs_registers/tb_cs_registers.core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ targets:
121121
- '--trace-structs'
122122
- '--trace-params'
123123
- '--trace-max-array 1024'
124-
- '-CFLAGS "-std=c++14 -Wall -DTOPLEVEL_NAME=tb_cs_registers -DVM_TRACE_FMT_FST -g"'
124+
- '-CFLAGS "-std=c++17 -Wall -DTOPLEVEL_NAME=tb_cs_registers -DVM_TRACE_FMT_FST -g"'
125125
- '-LDFLAGS "-pthread -lutil -lelf"'
126126
- "-Wall"
127127
- '-Wno-fatal' # Do not fail on (style) issues, only warn about them.

dv/riscv_compliance/ibex_riscv_compliance.core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ targets:
161161
- '--trace-structs'
162162
- '--trace-params'
163163
- '--trace-max-array 1024'
164-
- '-CFLAGS "-std=c++14 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_riscv_compliance -g"'
164+
- '-CFLAGS "-std=c++17 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_riscv_compliance -g"'
165165
- '-LDFLAGS "-pthread -lutil -lelf"'
166166
- "-Wall"

dv/verilator/simple_system_cosim/ibex_simple_system_cosim.core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ targets:
179179
- '--trace-structs'
180180
- '--trace-params'
181181
- '--trace-max-array 1024'
182-
- '-CFLAGS "-std=c++14 -Wall -DVL_USER_STOP -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g `pkg-config --cflags riscv-riscv riscv-disasm riscv-fdt`"'
182+
- '-CFLAGS "-std=c++17 -Wall -DVL_USER_STOP -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g `pkg-config --cflags riscv-riscv riscv-disasm riscv-fdt`"'
183183
- '-LDFLAGS "-pthread -lutil -lelf `pkg-config --libs riscv-riscv riscv-disasm riscv-fdt`"'
184184
- "-Wall"
185185
# RAM primitives wider than 64bit (required for ECC) fail to build in

examples/simple_system/ibex_simple_system.core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ targets:
175175
- '--trace-structs'
176176
- '--trace-params'
177177
- '--trace-max-array 1024'
178-
- '-CFLAGS "-std=c++14 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g"'
178+
- '-CFLAGS "-std=c++17 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g"'
179179
- '-LDFLAGS "-pthread -lutil -lelf"'
180180
- "-Wall"
181181
# RAM primitives wider than 64bit (required for ECC) fail to build in

0 commit comments

Comments
 (0)