From: Boris Shingarov Date: Mon, 18 Sep 2017 19:30:51 +0000 (-0400) Subject: arch-arm: Fix inverted 32/64-bit check in GDB X-Git-Tag: v19.0.0.0~2598 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b63b756cc6ca75acceee51397f815df06fb0dff;p=gem5.git 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 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- 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 ®Cache32; - else return ®Cache64; + else + return ®Cache32; }