exec_context.hh (8443:530ff1bc8d70) exec_context.hh (8444:56de1f9320df)
1/*
2 * Copyright (c) 2002-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;

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

101 void setEA(Addr EA);
102 /** Returns the effective address of the instruction. Only valid
103 * for memory ops. */
104 Addr getEA();
105
106 /** Returns a pointer to the ThreadContext. */
107 ThreadContext *tcBase();
108
1/*
2 * Copyright (c) 2002-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;

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

101 void setEA(Addr EA);
102 /** Returns the effective address of the instruction. Only valid
103 * for memory ops. */
104 Addr getEA();
105
106 /** Returns a pointer to the ThreadContext. */
107 ThreadContext *tcBase();
108
109 Fault readBytes(Addr addr, uint8_t *data, unsigned size, unsigned flags);
109 Fault readMem(Addr addr, uint8_t *data, unsigned size, unsigned flags);
110
110
111 Fault writeBytes(uint8_t *data, unsigned size,
112 Addr addr, unsigned flags, uint64_t *res);
111 Fault writeMem(uint8_t *data, unsigned size,
112 Addr addr, unsigned flags, uint64_t *res);
113
114#if FULL_SYSTEM
115 /** Somewhat Alpha-specific function that handles returning from
116 * an error or interrupt. */
117 Fault hwrei();
118
119 /**
120 * Check for special simulator handling of specific PAL calls. If
121 * return value is false, actual PAL call will be suppressed.
122 */
123 bool simPalCheck(int palFunc);
124#else
125 /** Executes a syscall specified by the callnum. */
126 void syscall(int64_t callnum);
127#endif
128
129 /** Finish a DTB address translation. */
130 void finishTranslation(WholeTranslationState *state);
131};
113
114#if FULL_SYSTEM
115 /** Somewhat Alpha-specific function that handles returning from
116 * an error or interrupt. */
117 Fault hwrei();
118
119 /**
120 * Check for special simulator handling of specific PAL calls. If
121 * return value is false, actual PAL call will be suppressed.
122 */
123 bool simPalCheck(int palFunc);
124#else
125 /** Executes a syscall specified by the callnum. */
126 void syscall(int64_t callnum);
127#endif
128
129 /** Finish a DTB address translation. */
130 void finishTranslation(WholeTranslationState *state);
131};