Add FORCE_DISABLE_JIT configure flag

This commit is contained in:
Fabian 2020-12-31 19:14:29 -06:00
parent ea50e29e5f
commit b7f9662655
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1,2 @@
pub const LOG_PAGE_FAULTS: bool = false;
pub const FORCE_DISABLE_JIT: bool = false;

View file

@ -1876,7 +1876,7 @@ pub unsafe fn run_instruction0f_32(opcode: i32) { ::gen::interpreter0f_32::run(o
#[no_mangle]
pub unsafe fn cycle_internal() {
profiler::stat_increment(CYCLE_INTERNAL);
if true {
if !::config::FORCE_DISABLE_JIT {
*previous_ip = *instruction_pointer;
let phys_addr: u32 = return_on_pagefault!(get_phys_eip()) as u32;
let state_flags = pack_current_state_flags();