base.hh (5169:bfd18d401251) base.hh (5222:bb733a878f85)
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;

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

373 }
374
375 void setRegOtherThread(int regIdx, const MiscReg &val, int tid = -1)
376 {
377 panic("Simple CPU models do not support multithreaded "
378 "register access.\n");
379 }
380
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;

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

373 }
374
375 void setRegOtherThread(int regIdx, const MiscReg &val, int tid = -1)
376 {
377 panic("Simple CPU models do not support multithreaded "
378 "register access.\n");
379 }
380
381 void setShadowSet(int css) {
382 panic("Simple CPU models do not support Shadow Sets");
383 //tc->setShadowSet(css);
384 }
385
386 Fault CacheOp(uint8_t Op, Addr EA);
381#if FULL_SYSTEM
382 Fault hwrei() { return thread->hwrei(); }
383 void ev5_trap(Fault fault) { fault->invoke(tc); }
384 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
385#else
386 void syscall(int64_t callnum) { thread->syscall(callnum); }
387#endif
388
389 bool misspeculating() { return thread->misspeculating(); }
390 ThreadContext *tcBase() { return tc; }
391};
392
393#endif // __CPU_SIMPLE_BASE_HH__
387#if FULL_SYSTEM
388 Fault hwrei() { return thread->hwrei(); }
389 void ev5_trap(Fault fault) { fault->invoke(tc); }
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__