base.hh (3479:4fbcaa81d105) base.hh (3521:0b0b3551def0)
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;

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

297
298 void setMiscRegWithEffect(int misc_reg, const MiscReg &val)
299 {
300 return thread->setMiscRegWithEffect(misc_reg, val);
301 }
302
303#if FULL_SYSTEM
304 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;

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

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