VirtualBox

Changeset 36170 in vbox for trunk/src/recompiler/cpu-defs.h


Ignore:
Timestamp:
Mar 4, 2011 12:49:02 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70361
Message:

rem: synced up to svn://svn.savannah.nongnu.org/qemu/trunk@6686 (repo UUID c046a42c-6fe2-441c-8c8c-71466251a162).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/cpu-defs.h

    r36140 r36170  
    1616 * You should have received a copy of the GNU Lesser General Public
    1717 * License along with this library; if not, write to the Free Software
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
     18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
    1919 */
    2020
     
    3939#include <inttypes.h>
    4040#include "osdep.h"
     41#include "sys-queue.h"
    4142
    4243#ifndef TARGET_LONG_BITS
     
    9394#define EXCP_DEBUG      0x10002 /* cpu stopped after a breakpoint or singlestep */
    9495#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). */
    100101#endif /* VBOX */
    101 #define MAX_BREAKPOINTS 32
    102 #define MAX_WATCHPOINTS 32
    103102
    104103#define TB_JMP_CACHE_BITS 12
     
    133132    target_ulong addr_code;
    134133    /* Addend to virtual address to get physical address.  IO accesses
    135        use the correcponding iotlb value.  */
     134       use the corresponding iotlb value.  */
    136135#if TARGET_PHYS_ADDR_BITS == 64
    137136    /* on i386 Linux make sure it is aligned */
     
    158157} icount_decr_u16;
    159158#endif
     159
     160struct kvm_run;
     161struct KVMState;
     162
     163typedef struct CPUBreakpoint {
     164    target_ulong pc;
     165    int flags; /* BP_* */
     166    TAILQ_ENTRY(CPUBreakpoint) entry;
     167} CPUBreakpoint;
     168
     169typedef struct CPUWatchpoint {
     170    target_ulong vaddr;
     171    target_ulong len_mask;
     172    int flags; /* BP_* */
     173    TAILQ_ENTRY(CPUWatchpoint) entry;
     174} CPUWatchpoint;
    160175
    161176#define CPU_TEMP_BUF_NLONGS 128
     
    193208    /* from this point: preserved by CPU reset */                       \
    194209    /* ice debug support */                                             \
    195     target_ulong breakpoints[MAX_BREAKPOINTS];                          \
    196     int nb_breakpoints;                                                 \
     210    TAILQ_HEAD(breakpoints_head, CPUBreakpoint) breakpoints;            \
    197211    int singlestep_enabled;                                             \
    198212                                                                        \
    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;                                      \
    205215                                                                        \
    206216    struct GDBRegisterState *gdb_regs;                                  \
     
    209219    jmp_buf jmp_env;                                                    \
    210220    int exception_index;                                                \
    211                                                                         \
    212     int user_mode_only;                                                 \
    213221                                                                        \
    214222    void *next_cpu; /* next CPU sharing TB cache */                     \
     
    218226    void *opaque;                                                       \
    219227                                                                        \
    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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette