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; --- 124 unchanged lines hidden (view full) --- 133 void 134 ivle(ThreadContext *tc) 135 { 136 } 137 138 void 139 m5exit_old(ThreadContext *tc) 140 { |
141 exitSimLoop("m5_exit_old instruction encountered"); |
142 } 143 144 void 145 m5exit(ThreadContext *tc, Tick delay) 146 { 147 Tick when = curTick + delay * Clock::Int::ns; |
148 schedExitSimLoop("m5_exit instruction encountered", when); |
149 } 150 151 void 152 loadsymbol(ThreadContext *tc) 153 { 154 const string &filename = tc->getCpuPtr()->system->params()->symbolfile; 155 if (filename.empty()) { 156 return; --- 108 unchanged lines hidden (view full) --- 265 SetupEvent(Dump|Reset, when, repeat); 266 } 267 268 void 269 m5checkpoint(ThreadContext *tc, Tick delay, Tick period) 270 { 271 if (!doCheckpointInsts) 272 return; |
273 274 Tick when = curTick + delay * Clock::Int::ns; 275 Tick repeat = period * Clock::Int::ns; 276 277 schedExitSimLoop("checkpoint", when, repeat); |
278 } 279 280 uint64_t 281 readfile(ThreadContext *tc, Addr vaddr, uint64_t len, uint64_t offset) 282 { 283 const string &file = tc->getCpuPtr()->system->params()->readfile; 284 if (file.empty()) { 285 return ULL(0); --- 66 unchanged lines hidden --- |