sim,base: Deprecate the GEM5_DEPRECATED_ENUM_VAL attribute.
The deprecated attribute didn't work on versions of gcc older than 6, but we now require version 7 or newer, so we don't need the macro any more. This change collapses the two uses of it in sim/aux_vector.hh, and marks the macro as deprecated by extending the message string in the underlying deprecated attribute. Change-Id: I3bc9835ba19ad9534c7725e17a3558a749a94ca5 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48514 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Daniel Carvalho <odanrc@yahoo.com.br>
This commit is contained in:
@@ -95,8 +95,8 @@ enum Type
|
||||
} // namespace auxv
|
||||
|
||||
#define GEM5_DEPRECATE_AT(NAME, name) M5_AT_##NAME \
|
||||
GEM5_DEPRECATED_ENUM_VAL(\
|
||||
"Replace M5_AT_" #NAME " with gem5::auxv::" #name) = gem5::auxv::name
|
||||
[[deprecated("Replace M5_AT_" #NAME " with gem5::auxv::" #name)]] = \
|
||||
gem5::auxv::name
|
||||
|
||||
enum AuxiliaryVectorType
|
||||
{
|
||||
@@ -119,8 +119,8 @@ enum AuxiliaryVectorType
|
||||
GEM5_DEPRECATE_AT(HWCAP, Hwcap),
|
||||
GEM5_DEPRECATE_AT(CLKTCK, Clktck),
|
||||
GEM5_DEPRECATE_AT(SECURE, Secure),
|
||||
M5_BASE_PLATFORM GEM5_DEPRECATED_ENUM_VAL(
|
||||
"Replace M5_BASE_PLATFORM with gem5::auxv::BasePlatform") =
|
||||
M5_BASE_PLATFORM [[deprecated(
|
||||
"Replace M5_BASE_PLATFORM with gem5::auxv::BasePlatform")]] =
|
||||
gem5::auxv::BasePlatform,
|
||||
GEM5_DEPRECATE_AT(RANDOM, Random),
|
||||
GEM5_DEPRECATE_AT(HWCAP2, Hwcap2),
|
||||
|
||||
Reference in New Issue
Block a user