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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user