misc: Replace M5_FOR_EACH_IN_PACK with GEM5_FOR_EACH_IN_PACK.

Change-Id: I5d565c496129033634d2b913f83d014c5e07b1dc
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45240
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
Gabe Black
2021-05-08 20:47:45 -07:00
parent f1879bdc17
commit 2fd7508e9f
3 changed files with 5 additions and 5 deletions

View File

@@ -353,8 +353,8 @@ class InstOperands : public Base, public Operands...
std::stringstream response;
Base::printMnemonic(response, this->instMnem, this->mnemonic);
int count = 0;
M5_FOR_EACH_IN_PACK(ccprintf(response, count++ ? ", " : ""),
Operands::print(response));
GEM5_FOR_EACH_IN_PACK(ccprintf(response, count++ ? ", " : ""),
Operands::print(response));
return response.str();
}
};

View File

@@ -102,8 +102,8 @@ dumpArgsFrom(std::ostream &os, GEM5_VAR_USED ThreadContext *tc,
int count = 0;
// Extract all the arguments from the thread context and print them,
// prefixed with either a ( or a , as appropriate.
M5_FOR_EACH_IN_PACK(os << (count++ ? ", " : "("),
os << getArgument<ABI, Args>(tc, state));
GEM5_FOR_EACH_IN_PACK(os << (count++ ? ", " : "("),
os << getArgument<ABI, Args>(tc, state));
os << ")";
}

View File

@@ -112,7 +112,7 @@ static inline void
prepareForArguments(GEM5_VAR_USED ThreadContext *tc,
typename ABI::State &state)
{
M5_FOR_EACH_IN_PACK(Preparer<ABI, Argument, Args>::prepare(tc, state));
GEM5_FOR_EACH_IN_PACK(Preparer<ABI, Argument, Args>::prepare(tc, state));
}
template <typename ABI, typename Ret, typename ...Args>