Changeset 37675 in vbox for trunk/src/recompiler/exec-all.h
- Timestamp:
- Jun 29, 2011 7:07:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/exec-all.h
r36175 r37675 60 60 /* A Call op needs up to 6 + 2N parameters (N = number of arguments). */ 61 61 #define MAX_OPC_PARAM 10 62 #define OPC_BUF_SIZE 51262 #define OPC_BUF_SIZE 640 63 63 #define OPC_MAX_SIZE (OPC_BUF_SIZE - MAX_OP_PER_INSTR) 64 64 65 65 /* Maximum size a TCG op can expand to. This is complicated because a 66 single op may require several host instructions and regi rster reloads.67 For now take a wild guess at 1 28bytes, which should allow at least66 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 68 68 a couple of fixup instructions per argument. */ 69 #define TCG_MAX_OP_SIZE 1 2869 #define TCG_MAX_OP_SIZE 192 70 70 71 71 #define OPPARAM_BUF_SIZE (OPC_BUF_SIZE * MAX_OPC_PARAM) … … 137 137 #endif 138 138 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__) 143 140 #define USE_DIRECT_JUMP 144 141 #endif … … 400 397 #endif 401 398 402 #ifdef CONFIG_KQEMU403 #define KQEMU_MODIFY_PAGE_MASK (0xff & ~(VGA_DIRTY_FLAG | CODE_DIRTY_FLAG))404 405 #define MSR_QPI_COMMBASE 0xfabe0010406 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 #endif436 437 399 typedef void (CPUDebugExcpHandler)(CPUState *env); 438 400 … … 442 404 #ifndef VBOX 443 405 extern int singlestep; 444 #endif 445 446 #endif 406 #endif /*!VBOX*/ 407 408 #endif
Note:
See TracChangeset
for help on using the changeset viewer.