utility.hh (4182:5b2c0d266107) utility.hh (4194:af4f6022394b)
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

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

82 static inline size_t fetchInstSize() {
83 return sizeof(MachInst);
84 }
85
86 static inline MachInst makeRegisterCopy(int dest, int src) {
87 panic("makeRegisterCopy not implemented");
88 return 0;
89 }
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

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

82 static inline size_t fetchInstSize() {
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 }
90};
91
92
93#endif
108};
109
110
111#endif