x86: Fixed remote debugging of simulated code
authorMatthias Hille <matthiashille8@gmail.com>
Wed, 3 May 2017 08:42:05 +0000 (10:42 +0200)
committerJason Lowe-Power <jason@lowepower.com>
Thu, 15 Jun 2017 21:00:34 +0000 (21:00 +0000)
GDB breaks if more bytes are sent than the transmitted registers
actually need. Therefore the GdbRegCache struct needs to be packed to
prevent padding at the end.

Change-Id: Ib2c14eb70becdac609eb4f475d5dddbd5bcc60da
Signed-off-by: Matthias Hille <matthiashille8@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/3020
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

src/arch/x86/remote_gdb.hh

index 4a917925e9e517d49284f537a87a579d17411aca..f1cbcbe8c3e4ba408a725a3960cfab39eed90ed4 100644 (file)
@@ -96,7 +96,7 @@ class RemoteGDB : public BaseRemoteGDB
     {
       using BaseGdbRegCache::BaseGdbRegCache;
       private:
-        struct {
+        struct M5_ATTR_PACKED {
           uint64_t rax;
           uint64_t rbx;
           uint64_t rcx;