summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-11-08 15:31:52 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-11-08 15:31:52 -0500
commit42c73c6a9215a46ec83e31e03aef9eddc281336f (patch)
treec3dbaa14406c7d16681bbf1838954436581b5d6c /src/arch
parent63bbc8929d778c15f5c7479819226c19a42dc2b9 (diff)
downloadgem5-42c73c6a9215a46ec83e31e03aef9eddc281336f.tar.xz
Make a function to say how big gdbregs is in bytes vs. regs.
--HG-- extra : convert_revision : 10c50c2d45a8e510d71cccde520059363116da8a
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/alpha/remote_gdb.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/alpha/remote_gdb.cc b/src/arch/alpha/remote_gdb.cc
index 829e41ca8..f23fc3205 100644
--- a/src/arch/alpha/remote_gdb.cc
+++ b/src/arch/alpha/remote_gdb.cc
@@ -141,7 +141,7 @@ using namespace TheISA;
RemoteGDB::RemoteGDB(System *_system, ThreadContext *c)
: BaseRemoteGDB(_system, c, KGDB_NUMREGS)
{
- memset(gdbregs.regs, 0, gdbregs.size);
+ memset(gdbregs.regs, 0, gdbregs.bytes());
}
///////////////////////////////////////////////////////////
@@ -201,7 +201,7 @@ RemoteGDB::acc(Addr va, size_t len)
void
RemoteGDB::getregs()
{
- memset(gdbregs.regs, 0, gdbregs.size);
+ memset(gdbregs.regs, 0, gdbregs.bytes());
gdbregs.regs[KGDB_REG_PC] = context->readPC();