utility.hh (10407:a9023811bf9e) utility.hh (10417:710ee116eb68)
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;

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

82
83void copyRegs(ThreadContext *src, ThreadContext *dest);
84
85void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
86
87void skipFunction(ThreadContext *tc);
88
89inline void
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;

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

82
83void copyRegs(ThreadContext *src, ThreadContext *dest);
84
85void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
86
87void skipFunction(ThreadContext *tc);
88
89inline void
90advancePC(PCState &pc, const StaticInstPtr inst)
90advancePC(PCState &pc, const StaticInstPtr &inst)
91{
92 inst->advancePC(pc);
93}
94
95inline uint64_t
96getExecutingAsid(ThreadContext *tc)
97{
98 return tc->readMiscRegNoEffect(MISCREG_MMU_P_CONTEXT);
99}
100
101} // namespace SparcISA
102
103#endif
91{
92 inst->advancePC(pc);
93}
94
95inline uint64_t
96getExecutingAsid(ThreadContext *tc)
97{
98 return tc->readMiscRegNoEffect(MISCREG_MMU_P_CONTEXT);
99}
100
101} // namespace SparcISA
102
103#endif