thread_context.hh (4997:e7380529bd2d) thread_context.hh (5217:bb810bb8ca2d)
1/*
2 * Copyright (c) 2006 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;

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

263 // This function exits the thread context in the CPU and returns
264 // 1 if the CPU has no more active threads (meaning it's OK to exit);
265 // Used in syscall-emulation mode when a thread calls the exit syscall.
266 virtual int exit() { return 1; };
267#endif
268
269 virtual void changeRegFileContext(TheISA::RegContextParam param,
270 TheISA::RegContextVal val) = 0;
1/*
2 * Copyright (c) 2006 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;

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

263 // This function exits the thread context in the CPU and returns
264 // 1 if the CPU has no more active threads (meaning it's OK to exit);
265 // Used in syscall-emulation mode when a thread calls the exit syscall.
266 virtual int exit() { return 1; };
267#endif
268
269 virtual void changeRegFileContext(TheISA::RegContextParam param,
270 TheISA::RegContextVal val) = 0;
271
272 /** function to compare two thread contexts (for debugging) */
273 static void compare(ThreadContext *one, ThreadContext *two);
271};
272
273/**
274 * ProxyThreadContext class that provides a way to implement a
275 * ThreadContext without having to derive from it. ThreadContext is an
276 * abstract class, so anything that derives from it and uses its
277 * interface will pay the overhead of virtual function calls. This
278 * class is created to enable a user-defined Thread object to be used

--- 185 unchanged lines hidden ---
274};
275
276/**
277 * ProxyThreadContext class that provides a way to implement a
278 * ThreadContext without having to derive from it. ThreadContext is an
279 * abstract class, so anything that derives from it and uses its
280 * interface will pay the overhead of virtual function calls. This
281 * class is created to enable a user-defined Thread object to be used

--- 185 unchanged lines hidden ---