From 5b662c51632afada2f81ef130f260e6e75c54f67 Mon Sep 17 00:00:00 2001 From: Matthias Hille Date: Wed, 3 May 2017 10:42:05 +0200 Subject: x86: Fixed remote debugging of simulated code 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 Reviewed-on: https://gem5-review.googlesource.com/3020 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/arch/x86/remote_gdb.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/remote_gdb.hh b/src/arch/x86/remote_gdb.hh index 4a917925e..f1cbcbe8c 100644 --- a/src/arch/x86/remote_gdb.hh +++ b/src/arch/x86/remote_gdb.hh @@ -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; -- cgit v1.2.3