operatingsystem.cc revision 5795:72ce7502dc71
14403Srdreslin@umich.edu/* 21693Sstever@eecs.umich.edu * Copyright (c) 2009 The Regents of The University of Michigan 31693Sstever@eecs.umich.edu * All rights reserved. 41693Sstever@eecs.umich.edu * 51693Sstever@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 61693Sstever@eecs.umich.edu * modification, are permitted provided that the following conditions are 71693Sstever@eecs.umich.edu * met: redistributions of source code must retain the above copyright 81693Sstever@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 91693Sstever@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 101693Sstever@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 111693Sstever@eecs.umich.edu * documentation and/or other materials provided with the distribution; 121693Sstever@eecs.umich.edu * neither the name of the copyright holders nor the names of its 131693Sstever@eecs.umich.edu * contributors may be used to endorse or promote products derived from 141693Sstever@eecs.umich.edu * this software without specific prior written permission. 151693Sstever@eecs.umich.edu * 161693Sstever@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171693Sstever@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181693Sstever@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191693Sstever@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201693Sstever@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211693Sstever@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221693Sstever@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231693Sstever@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241693Sstever@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251693Sstever@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261693Sstever@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 271693Sstever@eecs.umich.edu * 281693Sstever@eecs.umich.edu * Authors: Ali Saidi 293358Srdreslin@umich.edu */ 303358Srdreslin@umich.edu 311516SN/A 326654Snate@binkert.org#include "kern/operatingsystem.hh" 336654Snate@binkert.org#include "base/misc.hh" 346654Snate@binkert.org 356654Snate@binkert.orgint 363358Srdreslin@umich.eduOperatingSystem::openSpecialFile(std::string path, LiveProcess *process, ThreadContext *tc) 373358Srdreslin@umich.edu{ 386654Snate@binkert.org warn("Attempting to open special file: %s. Ignorning. Simulation may" 396654Snate@binkert.org " take un-expected code path or be non-deterministic until proper" 401516SN/A " handling is implemented.\n", path.c_str()); 413358Srdreslin@umich.edu return -1; 423358Srdreslin@umich.edu} 433358Srdreslin@umich.edu 443358Srdreslin@umich.edu 453358Srdreslin@umich.edu