1/* 2 * Copyright (c) 2003-2006 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; --- 22 unchanged lines hidden (view full) --- 31#include <errno.h> 32#include <fcntl.h> 33#include <unistd.h> 34 35#include <string> 36 37#include "sim/pseudo_inst.hh" 38#include "arch/vtophys.hh" |
39#include "base/annotate.hh" |
40#include "cpu/base.hh" 41#include "cpu/thread_context.hh" 42#include "cpu/quiesce_event.hh" 43#include "kern/kernel_stats.hh" 44#include "sim/param.hh" 45#include "sim/serialize.hh" 46#include "sim/sim_exit.hh" 47#include "sim/stat_control.hh" --- 136 unchanged lines hidden (view full) --- 184 std::string symbol(symb); 185 186 DPRINTF(Loader, "Loaded symbol: %s @ %#llx\n", symbol, addr); 187 188 tc->getSystemPtr()->kernelSymtab->insert(addr,symbol); 189 } 190 191 void |
192 anBegin(ThreadContext *tc, uint64_t cur) 193 { 194 Annotate::annotations.add(tc->getSystemPtr(), 0, cur >> 32, cur & 195 0xFFFFFFFF, 0,0); 196 } 197 198 void 199 anWait(ThreadContext *tc, uint64_t cur, uint64_t wait) 200 { 201 Annotate::annotations.add(tc->getSystemPtr(), 0, cur >> 32, cur & 202 0xFFFFFFFF, wait >> 32, wait & 0xFFFFFFFF); 203 } 204 205 206 void |
207 dumpresetstats(ThreadContext *tc, Tick delay, Tick period) 208 { 209 if (!doStatisticsInsts) 210 return; 211 212 213 Tick when = curTick + delay * Clock::Int::ns; 214 Tick repeat = period * Clock::Int::ns; --- 85 unchanged lines hidden --- |