misc,util: Remove explicit ';'s from M5OP_FOREACH.

It may be the case that each item M5OP_FOREACH iterates over should end
in a ',' and not a ';', for instance when putting each item into an
array or initializing a structure. If the caller still wants a ';', they
can add it into the definition of the M5OP macro.

Change-Id: Idd6538b0aad27df39658c3f749c6ff5e4fe55e6d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27237
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2020-03-26 17:02:25 -07:00
parent 3b6f2fc14f
commit 3e88a4aa01
5 changed files with 30 additions and 30 deletions

View File

@@ -69,6 +69,6 @@
#endif
.text
#define M5OP(name, func) m5op_func name, func
#define M5OP(name, func) m5op_func name, func;
M5OP_FOREACH
#undef M5OP

View File

@@ -52,6 +52,6 @@
.endm
.text
#define M5OP(name, func) m5op_func name, func
#define M5OP(name, func) m5op_func name, func;
M5OP_FOREACH
#undef M5OP

View File

@@ -42,6 +42,6 @@
.size \name, (.-\name)
.endm
#define M5OP(name, func) m5op_func name, func
#define M5OP(name, func) m5op_func name, func;
M5OP_FOREACH
#undef M5OP

View File

@@ -54,6 +54,6 @@
.endm
.text
#define M5OP(name, func) m5op_func name, func
#define M5OP(name, func) m5op_func name, func;
M5OP_FOREACH
#undef M5OP