base.hh (3453:c3ce58882751) base.hh (3454:26850ac19a39)
1/*
2 * Copyright (c) 2002-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;

--- 291 unchanged lines hidden (view full) ---

300
301 Fault setMiscRegWithEffect(int misc_reg, const MiscReg &val)
302 {
303 return thread->setMiscRegWithEffect(misc_reg, val);
304 }
305
306#if FULL_SYSTEM
307 Fault hwrei() { return thread->hwrei(); }
1/*
2 * Copyright (c) 2002-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;

--- 291 unchanged lines hidden (view full) ---

300
301 Fault setMiscRegWithEffect(int misc_reg, const MiscReg &val)
302 {
303 return thread->setMiscRegWithEffect(misc_reg, val);
304 }
305
306#if FULL_SYSTEM
307 Fault hwrei() { return thread->hwrei(); }
308 int readIntrFlag() { return thread->readIntrFlag(); }
309 void setIntrFlag(int val) { thread->setIntrFlag(val); }
310 bool inPalMode() { return thread->inPalMode(); }
311 void ev5_trap(Fault fault) { fault->invoke(tc); }
312 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
313#else
314 void syscall(int64_t callnum) { thread->syscall(callnum); }
315#endif
316
317 bool misspeculating() { return thread->misspeculating(); }
318 ThreadContext *tcBase() { return tc; }
319};
320
321#endif // __CPU_SIMPLE_BASE_HH__
308 bool inPalMode() { return thread->inPalMode(); }
309 void ev5_trap(Fault fault) { fault->invoke(tc); }
310 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
311#else
312 void syscall(int64_t callnum) { thread->syscall(callnum); }
313#endif
314
315 bool misspeculating() { return thread->misspeculating(); }
316 ThreadContext *tcBase() { return tc; }
317};
318
319#endif // __CPU_SIMPLE_BASE_HH__