utility.hh (3528:28d256c14e24) | utility.hh (3532:da906369816a) |
---|---|
1/* 2 * Copyright (c) 2003-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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Gabe Black 29 */ 30 31#ifndef __ARCH_SPARC_UTILITY_HH__ 32#define __ARCH_SPARC_UTILITY_HH__ 33 | 1/* 2 * Copyright (c) 2003-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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Gabe Black 29 */ 30 31#ifndef __ARCH_SPARC_UTILITY_HH__ 32#define __ARCH_SPARC_UTILITY_HH__ 33 |
34#include "arch/sparc/faults.hh" |
|
34#include "arch/sparc/isa_traits.hh" 35#include "base/misc.hh" 36#include "base/bitfield.hh" 37#include "cpu/thread_context.hh" 38 39namespace SparcISA 40{ 41 inline ExtMachInst --- 52 unchanged lines hidden (view full) --- 94 95 /** 96 * Function to insure ISA semantics about 0 registers. 97 * @param tc The thread context. 98 */ 99 template <class TC> 100 void zeroRegisters(TC *tc); 101 | 35#include "arch/sparc/isa_traits.hh" 36#include "base/misc.hh" 37#include "base/bitfield.hh" 38#include "cpu/thread_context.hh" 39 40namespace SparcISA 41{ 42 inline ExtMachInst --- 52 unchanged lines hidden (view full) --- 95 96 /** 97 * Function to insure ISA semantics about 0 registers. 98 * @param tc The thread context. 99 */ 100 template <class TC> 101 void zeroRegisters(TC *tc); 102 |
102 void initCPU(ThreadContext *tc, int cpuId) | 103 inline void initCPU(ThreadContext *tc, int cpuId) |
103 { | 104 { |
104 //This would be a good place to stick a PowerOnReset fault into the 105 //cpu. | 105 static Fault por = new PowerOnReset(); 106 por->invoke(tc); |
106 } 107 108} // namespace SparcISA 109 110#endif | 107 } 108 109} // namespace SparcISA 110 111#endif |