summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Shingarov <shingarov@gmail.com>2017-09-18 15:30:51 -0400
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-10-17 08:35:23 +0000
commit1b63b756cc6ca75acceee51397f815df06fb0dff (patch)
treeae547d9e5f23dab6f86a5efa85e4da70ad0f3131 /src
parent5a7ac72aa106a34f12662b3cd2da8dab47b668a0 (diff)
downloadgem5-1b63b756cc6ca75acceee51397f815df06fb0dff.tar.xz
arch-arm: Fix inverted 32/64-bit check in GDB
Change-Id: Ided438af19c9b8504d4624119c4d9fb5157c7cf0 Reviewed-on: https://gem5-review.googlesource.com/4720 Reviewed-by: Paul Rosenfeld <prosenfeld@micron.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/remote_gdb.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/remote_gdb.cc b/src/arch/arm/remote_gdb.cc
index d934d53d3..6dc68b190 100644
--- a/src/arch/arm/remote_gdb.cc
+++ b/src/arch/arm/remote_gdb.cc
@@ -305,7 +305,7 @@ RemoteGDB::BaseGdbRegCache*
RemoteGDB::gdbRegs()
{
if (inAArch64(context))
- return &regCache32;
- else
return &regCache64;
+ else
+ return &regCache32;
}