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; --- 135 unchanged lines hidden (view full) --- 144 void 145 m5exit(ThreadContext *tc, Tick delay) 146 { 147 Tick when = curTick + delay * Clock::Int::ns; 148 exitSimLoop(when, "m5_exit instruction encountered"); 149 } 150 151 void |
152 loadsymbol(ThreadContext *tc) |
153 { |
154 const string &filename = tc->getCpuPtr()->system->params()->symbolfile; |
155 if (filename.empty()) { 156 return; 157 } 158 159 std::string buffer; 160 ifstream file(filename.c_str()); 161 162 if (!file) --- 19 unchanged lines hidden (view full) --- 182 eat_white(symbol); 183 if (symbol.empty()) 184 continue; 185 186 Addr addr; 187 if (!to_number(address, addr)) 188 continue; 189 |
190 if (!tc->getSystemPtr()->kernelSymtab->insert(addr, symbol)) |
191 continue; 192 193 194 DPRINTF(Loader, "Loaded symbol: %s @ %#llx\n", symbol, addr); 195 } 196 file.close(); 197 } 198 --- 149 unchanged lines hidden --- |