arch-arm: Fix inverted 32/64-bit check in GDB
authorBoris Shingarov <shingarov@gmail.com>
Mon, 18 Sep 2017 19:30:51 +0000 (15:30 -0400)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 17 Oct 2017 08:35:23 +0000 (08:35 +0000)
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>

src/arch/arm/remote_gdb.cc

index d934d53d356eb3f10dc9ff5cc76200b0c7185dd3..6dc68b190a8662edc7f56b498aa83b86486bd0de 100644 (file)
@@ -305,7 +305,7 @@ RemoteGDB::BaseGdbRegCache*
 RemoteGDB::gdbRegs()
 {
     if (inAArch64(context))
-        return &regCache32;
-    else
         return &regCache64;
+    else
+        return &regCache32;
 }