From 2fd7508e9fc438d826f2d93420d75c5a6cf5b9d2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 8 May 2021 20:47:45 -0700 Subject: [PATCH] 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 Maintainer: Gabe Black Reviewed-by: Daniel Carvalho --- src/arch/x86/insts/microop_args.hh | 4 ++-- src/sim/guest_abi/dispatch.hh | 4 ++-- src/sim/guest_abi/layout.hh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/arch/x86/insts/microop_args.hh b/src/arch/x86/insts/microop_args.hh index a8a01b1299..fe893a7c4e 100644 --- a/src/arch/x86/insts/microop_args.hh +++ b/src/arch/x86/insts/microop_args.hh @@ -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(); } }; diff --git a/src/sim/guest_abi/dispatch.hh b/src/sim/guest_abi/dispatch.hh index 2caa208b89..32e07b4596 100644 --- a/src/sim/guest_abi/dispatch.hh +++ b/src/sim/guest_abi/dispatch.hh @@ -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(tc, state)); + GEM5_FOR_EACH_IN_PACK(os << (count++ ? ", " : "("), + os << getArgument(tc, state)); os << ")"; } diff --git a/src/sim/guest_abi/layout.hh b/src/sim/guest_abi/layout.hh index 08840ec289..9c8f42f2da 100644 --- a/src/sim/guest_abi/layout.hh +++ b/src/sim/guest_abi/layout.hh @@ -112,7 +112,7 @@ static inline void prepareForArguments(GEM5_VAR_USED ThreadContext *tc, typename ABI::State &state) { - M5_FOR_EACH_IN_PACK(Preparer::prepare(tc, state)); + GEM5_FOR_EACH_IN_PACK(Preparer::prepare(tc, state)); } template