Changeset 36170 in vbox for trunk/src/recompiler/cpu-defs.h
- Timestamp:
- Mar 4, 2011 12:49:02 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70361
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/cpu-defs.h
r36140 r36170 16 16 * You should have received a copy of the GNU Lesser General Public 17 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 5 9 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA 19 19 */ 20 20 … … 39 39 #include <inttypes.h> 40 40 #include "osdep.h" 41 #include "sys-queue.h" 41 42 42 43 #ifndef TARGET_LONG_BITS … … 93 94 #define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or singlestep */ 94 95 #define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event) */ 95 #if defined(VBOX)96 # define EXCP_EXECUTE_RAW 0x11024 /*execute raw mode. */97 # define EXCP_EXECUTE_HWACC 0x11025 /*execute hardware accelerated raw mode. */98 # define EXCP_SINGLE_INSTR 0x11026 /*executed single instruction. */99 # define EXCP_RC 0x11027 /*a EM rc was raised (VMR3Reset/Suspend/PowerOff). */96 #ifdef VBOX 97 # define EXCP_EXECUTE_RAW 0x11024 /**< execute raw mode. */ 98 # define EXCP_EXECUTE_HWACC 0x11025 /**< execute hardware accelerated raw mode. */ 99 # define EXCP_SINGLE_INSTR 0x11026 /**< executed single instruction. */ 100 # define EXCP_RC 0x11027 /**< a EM rc was raised (VMR3Reset/Suspend/PowerOff). */ 100 101 #endif /* VBOX */ 101 #define MAX_BREAKPOINTS 32102 #define MAX_WATCHPOINTS 32103 102 104 103 #define TB_JMP_CACHE_BITS 12 … … 133 132 target_ulong addr_code; 134 133 /* Addend to virtual address to get physical address. IO accesses 135 use the corre cponding iotlb value. */134 use the corresponding iotlb value. */ 136 135 #if TARGET_PHYS_ADDR_BITS == 64 137 136 /* on i386 Linux make sure it is aligned */ … … 158 157 } icount_decr_u16; 159 158 #endif 159 160 struct kvm_run; 161 struct KVMState; 162 163 typedef struct CPUBreakpoint { 164 target_ulong pc; 165 int flags; /* BP_* */ 166 TAILQ_ENTRY(CPUBreakpoint) entry; 167 } CPUBreakpoint; 168 169 typedef struct CPUWatchpoint { 170 target_ulong vaddr; 171 target_ulong len_mask; 172 int flags; /* BP_* */ 173 TAILQ_ENTRY(CPUWatchpoint) entry; 174 } CPUWatchpoint; 160 175 161 176 #define CPU_TEMP_BUF_NLONGS 128 … … 193 208 /* from this point: preserved by CPU reset */ \ 194 209 /* ice debug support */ \ 195 target_ulong breakpoints[MAX_BREAKPOINTS]; \ 196 int nb_breakpoints; \ 210 TAILQ_HEAD(breakpoints_head, CPUBreakpoint) breakpoints; \ 197 211 int singlestep_enabled; \ 198 212 \ 199 struct { \ 200 target_ulong vaddr; \ 201 int type; /* PAGE_READ/PAGE_WRITE */ \ 202 } watchpoint[MAX_WATCHPOINTS]; \ 203 int nb_watchpoints; \ 204 int watchpoint_hit; \ 213 TAILQ_HEAD(watchpoints_head, CPUWatchpoint) watchpoints; \ 214 CPUWatchpoint *watchpoint_hit; \ 205 215 \ 206 216 struct GDBRegisterState *gdb_regs; \ … … 209 219 jmp_buf jmp_env; \ 210 220 int exception_index; \ 211 \212 int user_mode_only; \213 221 \ 214 222 void *next_cpu; /* next CPU sharing TB cache */ \ … … 218 226 void *opaque; \ 219 227 \ 220 const char *cpu_model_str; 221 222 #endif 228 const char *cpu_model_str; \ 229 struct KVMState *kvm_state; \ 230 struct kvm_run *kvm_run; \ 231 int kvm_fd; 232 233 #endif
Note:
See TracChangeset
for help on using the changeset viewer.