diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-04-24 03:30:08 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-04-24 03:30:08 -0400 |
commit | 179787f31faf12f7f4a31506db40236e82873675 (patch) | |
tree | 25210494a0bd0bbab9bbf631db3942a4e6066bea /src/arch/arm | |
parent | 936768c8f4b266e5cc5317def6f34306def29c56 (diff) | |
download | gem5-179787f31faf12f7f4a31506db40236e82873675.tar.xz |
misc: Appease gcc 5.1 without moving GDB_REG_BYTES
This patch rolls back the move of the GDB_REG_BYTES constant, and
instead adds M5_VAR_USED.
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/remote_gdb.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/arm/remote_gdb.hh b/src/arch/arm/remote_gdb.hh index 1e6420633..ce5c5aa6e 100644 --- a/src/arch/arm/remote_gdb.hh +++ b/src/arch/arm/remote_gdb.hh @@ -76,6 +76,10 @@ enum { GDB64_NUMREGS = 98 }; +const int GDB_REG_BYTES M5_VAR_USED = + std::max(GDB64_NUMREGS * sizeof(uint64_t), + GDB32_NUMREGS * sizeof(uint32_t)); + class RemoteGDB : public BaseRemoteGDB { protected: @@ -86,9 +90,6 @@ class RemoteGDB : public BaseRemoteGDB void setregs(); public: - const int GDB_REG_BYTES = std::max(GDB64_NUMREGS * sizeof(uint64_t), - GDB32_NUMREGS * sizeof(uint32_t)); - RemoteGDB(System *_system, ThreadContext *tc); }; } // namespace ArmISA |