From f94cac6f6502ddb95d0a1e4b09e9ef05fad7f8ce Mon Sep 17 00:00:00 2001 From: Yu-Cheng Chang Date: Fri, 13 Sep 2024 00:52:03 +0800 Subject: [PATCH] arch-riscv: Change the packed data of GdbRegCache to protected (#1552) Change it to protected to enable access the packed data from derived RiscvGdbRegCache class Change-Id: Ib33732642914ad367773c3fa45adaf6dfdeb248d --- src/arch/riscv/remote_gdb.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/riscv/remote_gdb.hh b/src/arch/riscv/remote_gdb.hh index a01ebe08f0..c9068ca44d 100644 --- a/src/arch/riscv/remote_gdb.hh +++ b/src/arch/riscv/remote_gdb.hh @@ -63,7 +63,7 @@ class RemoteGDB : public BaseRemoteGDB class Riscv32GdbRegCache : public BaseGdbRegCache { using BaseGdbRegCache::BaseGdbRegCache; - private: + protected: /** * RISC-V Register Cache * Order and sizes of registers found in ext/gdb-xml/riscv.xml @@ -149,7 +149,7 @@ class RemoteGDB : public BaseRemoteGDB class Riscv64GdbRegCache : public BaseGdbRegCache { using BaseGdbRegCache::BaseGdbRegCache; - private: + protected: /** * RISC-V Register Cache * Order and sizes of registers found in ext/gdb-xml/riscv.xml