1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 18 unchanged lines hidden (view full) ---
27 *
28 * Authors: Steve Reinhardt
29 * Nathan Binkert
30 */
31
32#ifndef __EXETRACE_HH__
33#define __EXETRACE_HH__
34
35#include <fstream>
36#include <vector>
37
38#include "sim/host.hh"
39#include "cpu/inst_seq.hh" // for InstSeqNum
40#include "base/trace.hh"
41#include "cpu/thread_context.hh"
42#include "cpu/static_inst.hh"
--- 121 unchanged lines hidden (view full) ---
164
165
166inline void
167InstRecord::setRegs(const IntRegFile ®s)
168{
169 if (!iregs)
170 iregs = new iRegFile;
171
172 memcpy(&iregs->regs, ®s, sizeof(IntRegFile));
173 regs_valid = true;
174}
175
176inline
177InstRecord *
178getInstRecord(Tick cycle, ThreadContext *tc,
179 const StaticInstPtr staticInst,
180 Addr pc)
--- 14 unchanged lines hidden ---
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 18 unchanged lines hidden (view full) ---
27 *
28 * Authors: Steve Reinhardt
29 * Nathan Binkert
30 */
31
32#ifndef __EXETRACE_HH__
33#define __EXETRACE_HH__
34
35#include <fstream>
36#include <vector>
37
38#include "sim/host.hh"
39#include "cpu/inst_seq.hh" // for InstSeqNum
40#include "base/trace.hh"
41#include "cpu/thread_context.hh"
42#include "cpu/static_inst.hh"
--- 121 unchanged lines hidden (view full) ---
164
165
166inline void
167InstRecord::setRegs(const IntRegFile ®s)
168{
169 if (!iregs)
170 iregs = new iRegFile;
171
172 memcpy(&iregs->regs, ®s, sizeof(IntRegFile));
173 regs_valid = true;
174}
175
176inline
177InstRecord *
178getInstRecord(Tick cycle, ThreadContext *tc,
179 const StaticInstPtr staticInst,
180 Addr pc)
--- 14 unchanged lines hidden ---