base.hh (7600:eff7f79f7dfd) base.hh (7664:487916d36377)
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;

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

382 panic("Simple CPU models do not support multithreaded "
383 "register access.\n");
384 }
385
386 //Fault CacheOp(uint8_t Op, Addr EA);
387
388#if FULL_SYSTEM
389 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;

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

382 panic("Simple CPU models do not support multithreaded "
383 "register access.\n");
384 }
385
386 //Fault CacheOp(uint8_t Op, Addr EA);
387
388#if FULL_SYSTEM
389 Fault hwrei() { return thread->hwrei(); }
390 void ev5_trap(Fault fault) { fault->invoke(tc); }
391 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
392#else
393 void syscall(int64_t callnum) { thread->syscall(callnum); }
394#endif
395
396 bool misspeculating() { return thread->misspeculating(); }
397 ThreadContext *tcBase() { return tc; }
398};
399
400#endif // __CPU_SIMPLE_BASE_HH__
390 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
391#else
392 void syscall(int64_t callnum) { thread->syscall(callnum); }
393#endif
394
395 bool misspeculating() { return thread->misspeculating(); }
396 ThreadContext *tcBase() { return tc; }
397};
398
399#endif // __CPU_SIMPLE_BASE_HH__