VirtualBox

Changeset 37675 in vbox for trunk/src/recompiler/exec-all.h


Ignore:
Timestamp:
Jun 29, 2011 7:07:14 AM (13 years ago)
Author:
vboxsync
Message:

rem: Synced with v0.12.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/exec-all.h

    r36175 r37675  
    6060/* A Call op needs up to 6 + 2N parameters (N = number of arguments).  */
    6161#define MAX_OPC_PARAM 10
    62 #define OPC_BUF_SIZE 512
     62#define OPC_BUF_SIZE 640
    6363#define OPC_MAX_SIZE (OPC_BUF_SIZE - MAX_OP_PER_INSTR)
    6464
    6565/* Maximum size a TCG op can expand to.  This is complicated because a
    66    single op may require several host instructions and regirster reloads.
    67    For now take a wild guess at 128 bytes, which should allow at least
     66   single op may require several host instructions and register reloads.
     67   For now take a wild guess at 192 bytes, which should allow at least
    6868   a couple of fixup instructions per argument.  */
    69 #define TCG_MAX_OP_SIZE 128
     69#define TCG_MAX_OP_SIZE 192
    7070
    7171#define OPPARAM_BUF_SIZE (OPC_BUF_SIZE * MAX_OPC_PARAM)
     
    137137#endif
    138138
    139 #if defined(_ARCH_PPC) || defined(__x86_64__) || defined(__arm__)
    140 #define USE_DIRECT_JUMP
    141 #endif
    142 #if defined(__i386__) && !defined(_WIN32)
     139#if defined(_ARCH_PPC) || defined(__x86_64__) || defined(__arm__) || defined(__i386__)
    143140#define USE_DIRECT_JUMP
    144141#endif
     
    400397#endif
    401398
    402 #ifdef CONFIG_KQEMU
    403 #define KQEMU_MODIFY_PAGE_MASK (0xff & ~(VGA_DIRTY_FLAG | CODE_DIRTY_FLAG))
    404 
    405 #define MSR_QPI_COMMBASE 0xfabe0010
    406 
    407 int kqemu_init(CPUState *env);
    408 int kqemu_cpu_exec(CPUState *env);
    409 void kqemu_flush_page(CPUState *env, target_ulong addr);
    410 void kqemu_flush(CPUState *env, int global);
    411 void kqemu_set_notdirty(CPUState *env, ram_addr_t ram_addr);
    412 void kqemu_modify_page(CPUState *env, ram_addr_t ram_addr);
    413 void kqemu_set_phys_mem(uint64_t start_addr, ram_addr_t size,
    414                         ram_addr_t phys_offset);
    415 void kqemu_cpu_interrupt(CPUState *env);
    416 void kqemu_record_dump(void);
    417 
    418 extern uint32_t kqemu_comm_base;
    419 
    420 extern ram_addr_t kqemu_phys_ram_size;
    421 extern uint8_t *kqemu_phys_ram_base;
    422 
    423 static inline int kqemu_is_ok(CPUState *env)
    424 {
    425     return(env->kqemu_enabled &&
    426            (env->cr[0] & CR0_PE_MASK) &&
    427            !(env->hflags & HF_INHIBIT_IRQ_MASK) &&
    428            (env->eflags & IF_MASK) &&
    429            !(env->eflags & VM_MASK) &&
    430            (env->kqemu_enabled == 2 ||
    431             ((env->hflags & HF_CPL_MASK) == 3 &&
    432              (env->eflags & IOPL_MASK) != IOPL_MASK)));
    433 }
    434 
    435 #endif
    436 
    437399typedef void (CPUDebugExcpHandler)(CPUState *env);
    438400
     
    442404#ifndef VBOX
    443405extern int singlestep;
    444 #endif
    445 
    446 #endif
     406#endif /*!VBOX*/
     407
     408#endif
Note: See TracChangeset for help on using the changeset viewer.

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