utility.hh (4194:af4f6022394b) | utility.hh (4240:cde9d7751cce) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83 return sizeof(MachInst); 84 } 85 86 static inline MachInst makeRegisterCopy(int dest, int src) { 87 panic("makeRegisterCopy not implemented"); 88 return 0; 89 } 90 | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 74 unchanged lines hidden (view full) --- 83 return sizeof(MachInst); 84 } 85 86 static inline MachInst makeRegisterCopy(int dest, int src) { 87 panic("makeRegisterCopy not implemented"); 88 return 0; 89 } 90 |
91 static inline ExtMachInst 92 makeExtMI(MachInst inst, ThreadContext * xc) { 93#if FULL_SYSTEM 94 ExtMachInst ext_inst = inst; 95 if (xc->readPC() && 0x1) 96 return ext_inst|=(static_cast<ExtMachInst>(xc->readPC() & 0x1) << 32); 97 else 98 return ext_inst; 99#else 100 return ExtMachInst(inst); 101#endif 102 } 103 | |
104 inline void startupCPU(ThreadContext *tc, int cpuId) 105 { 106 tc->activate(0); 107 } 108}; 109 110 111#endif | 91 inline void startupCPU(ThreadContext *tc, int cpuId) 92 { 93 tc->activate(0); 94 } 95}; 96 97 98#endif |