base.hh (8541:27aaee8ec7cc) base.hh (8557:f44572edfba3)
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;

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

397 "register access.\n");
398 }
399
400 //Fault CacheOp(uint8_t Op, Addr EA);
401
402#if FULL_SYSTEM
403 Fault hwrei() { return thread->hwrei(); }
404 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
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;

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

397 "register access.\n");
398 }
399
400 //Fault CacheOp(uint8_t Op, Addr EA);
401
402#if FULL_SYSTEM
403 Fault hwrei() { return thread->hwrei(); }
404 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
405#endif
406
407 void
408 syscall(int64_t callnum)
409 {
410#if FULL_SYSTEM
411 panic("Syscall emulation isn't available in FS mode.\n");
405#else
412#else
406 void syscall(int64_t callnum) { thread->syscall(callnum); }
413 thread->syscall(callnum);
407#endif
414#endif
415 }
408
409 bool misspeculating() { return thread->misspeculating(); }
410 ThreadContext *tcBase() { return tc; }
411};
412
413#endif // __CPU_SIMPLE_BASE_HH__
416
417 bool misspeculating() { return thread->misspeculating(); }
418 ThreadContext *tcBase() { return tc; }
419};
420
421#endif // __CPU_SIMPLE_BASE_HH__