summaryrefslogtreecommitdiff
path: root/cpu/exetrace.hh
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/exetrace.hh')
-rw-r--r--cpu/exetrace.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/exetrace.hh b/cpu/exetrace.hh
index 67d042ec8..a26cdc517 100644
--- a/cpu/exetrace.hh
+++ b/cpu/exetrace.hh
@@ -163,7 +163,7 @@ InstRecord::setRegs(const IntRegFile &regs)
if (!iregs)
iregs = new iRegFile;
- memcpy(&iregs->regs, regs, sizeof(IntRegFile));
+ memcpy(&iregs->regs, &regs, sizeof(IntRegFile));
regs_valid = true;
}