utility.hh (6329:5d8b91875859) utility.hh (6757:d86d3d6e5326)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
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

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

120 panic("Copy Regs Not Implemented Yet\n");
121 }
122
123 static inline void
124 copyMiscRegs(ThreadContext *src, ThreadContext *dest)
125 {
126 panic("Copy Misc. Regs Not Implemented Yet\n");
127 }
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
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

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

120 panic("Copy Regs Not Implemented Yet\n");
121 }
122
123 static inline void
124 copyMiscRegs(ThreadContext *src, ThreadContext *dest)
125 {
126 panic("Copy Misc. Regs Not Implemented Yet\n");
127 }
128
129 void initCPU(ThreadContext *tc, int cpuId);
130
131 static inline bool
132 inUserMode(ThreadContext *tc)
133 {
134 return (tc->readMiscRegNoEffect(MISCREG_CPSR) & 0x1f) == MODE_USER;
135 }
136
137uint64_t getArgument(ThreadContext *tc, int number, bool fp);
138
128};
129
130
131#endif
139};
140
141
142#endif