Merged updates from SDL2 branch

This commit is contained in:
Dimitris Panokostas 2017-04-10 18:14:30 +02:00
commit bdf0acdc95
9 changed files with 70 additions and 168 deletions

View file

@ -49,12 +49,6 @@
#define DEBUG 0
#include "debug.h"
#if DEBUG
#define PROFILE_COMPILE_TIME 1
#define PROFILE_UNTRANSLATED_INSNS 1
#define bug printf
#endif
#ifdef JIT_DEBUG
#undef abort
#define abort() do { \
@ -65,26 +59,6 @@
} while (0)
#endif
#ifdef PROFILE_COMPILE_TIME
#include <time.h>
static uae_u32 compile_count = 0;
static clock_t compile_time = 0;
static clock_t emul_start_time = 0;
static clock_t emul_end_time = 0;
#endif
#ifdef PROFILE_UNTRANSLATED_INSNS
static int untranslated_top_ten = 30;
static uae_u32 raw_cputbl_count[65536] = { 0, };
static uae_u16 opcode_nums[65536];
static int untranslated_compfn(const void *e1, const void *e2)
{
return raw_cputbl_count[*(const uae_u16 *)e1] < raw_cputbl_count[*(const uae_u16 *)e2];
}
#endif
#define NATMEM_OFFSETX (uae_u32)natmem_offset
// %%% BRIAN KING WAS HERE %%%