Change to logging - when logging is disabled, the logging functions are now #define'd to nothing, so the compiler ignores the lines that call them completely, seems to slightly speed up the emulator; note that the logging in vid_table.c has not been changed yet, because this file on my local tree currently contains other WIP changes.
This commit is contained in:
@@ -2,7 +2,7 @@ static int opMOV_r_CRx_a16(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load from CRx\n");
|
||||
x386_dynarec_log("Can't load from CRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -27,7 +27,7 @@ static int opMOV_r_CRx_a16(uint32_t fetchdat)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
pclog("Bad read of CR%i %i\n",rmdat&7,cpu_reg);
|
||||
x386_dynarec_log("Bad read of CR%i %i\n",rmdat&7,cpu_reg);
|
||||
cpu_state.pc = cpu_state.oldpc;
|
||||
x86illegal();
|
||||
break;
|
||||
@@ -40,7 +40,7 @@ static int opMOV_r_CRx_a32(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load from CRx\n");
|
||||
x386_dynarec_log("Can't load from CRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ static int opMOV_r_CRx_a32(uint32_t fetchdat)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
pclog("Bad read of CR%i %i\n",rmdat&7,cpu_reg);
|
||||
x386_dynarec_log("Bad read of CR%i %i\n",rmdat&7,cpu_reg);
|
||||
cpu_state.pc = cpu_state.oldpc;
|
||||
x86illegal();
|
||||
break;
|
||||
@@ -79,7 +79,7 @@ static int opMOV_r_DRx_a16(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load from DRx\n");
|
||||
x386_dynarec_log("Can't load from DRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ static int opMOV_r_DRx_a32(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load from DRx\n");
|
||||
x386_dynarec_log("Can't load from DRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -110,7 +110,7 @@ static int opMOV_CRx_r_a16(uint32_t fetchdat)
|
||||
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load CRx\n");
|
||||
x386_dynarec_log("Can't load CRx\n");
|
||||
x86gpf(NULL,0);
|
||||
return 1;
|
||||
}
|
||||
@@ -151,7 +151,7 @@ static int opMOV_CRx_r_a16(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
default:
|
||||
pclog("Bad load CR%i\n", cpu_reg);
|
||||
x386_dynarec_log("Bad load CR%i\n", cpu_reg);
|
||||
cpu_state.pc = cpu_state.oldpc;
|
||||
x86illegal();
|
||||
break;
|
||||
@@ -166,7 +166,7 @@ static int opMOV_CRx_r_a32(uint32_t fetchdat)
|
||||
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load CRx\n");
|
||||
x386_dynarec_log("Can't load CRx\n");
|
||||
x86gpf(NULL,0);
|
||||
return 1;
|
||||
}
|
||||
@@ -207,7 +207,7 @@ static int opMOV_CRx_r_a32(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
default:
|
||||
pclog("Bad load CR%i\n", cpu_reg);
|
||||
x386_dynarec_log("Bad load CR%i\n", cpu_reg);
|
||||
cpu_state.pc = cpu_state.oldpc;
|
||||
x86illegal();
|
||||
break;
|
||||
@@ -221,7 +221,7 @@ static int opMOV_DRx_r_a16(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load DRx\n");
|
||||
x386_dynarec_log("Can't load DRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -235,7 +235,7 @@ static int opMOV_DRx_r_a32(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load DRx\n");
|
||||
x386_dynarec_log("Can't load DRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -250,7 +250,7 @@ static int opMOV_r_TRx_a16(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load from TRx\n");
|
||||
x386_dynarec_log("Can't load from TRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -264,7 +264,7 @@ static int opMOV_r_TRx_a32(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load from TRx\n");
|
||||
x386_dynarec_log("Can't load from TRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -279,7 +279,7 @@ static int opMOV_TRx_r_a16(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load TRx\n");
|
||||
x386_dynarec_log("Can't load TRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
@@ -292,7 +292,7 @@ static int opMOV_TRx_r_a32(uint32_t fetchdat)
|
||||
{
|
||||
if ((CPL || (eflags&VM_FLAG)) && (cr0&1))
|
||||
{
|
||||
pclog("Can't load TRx\n");
|
||||
x386_dynarec_log("Can't load TRx\n");
|
||||
x86gpf(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user