Cycle counts for recompiled blocks now generated at compile time.
This commit is contained in:
parent
087f412d3f
commit
2905c43db8
43 changed files with 1142 additions and 730 deletions
|
|
@ -3,7 +3,7 @@ static int opIN_AL_imm(uint32_t fetchdat)
|
|||
uint16_t port = (uint16_t)getbytef();
|
||||
check_io_perm(port);
|
||||
AL = inb(port);
|
||||
cycles -= 12;
|
||||
CLOCK_CYCLES(12);
|
||||
return 0;
|
||||
}
|
||||
static int opIN_AX_imm(uint32_t fetchdat)
|
||||
|
|
@ -12,7 +12,7 @@ static int opIN_AX_imm(uint32_t fetchdat)
|
|||
check_io_perm(port);
|
||||
check_io_perm(port + 1);
|
||||
AX = inw(port);
|
||||
cycles -= 12;
|
||||
CLOCK_CYCLES(12);
|
||||
return 0;
|
||||
}
|
||||
static int opIN_EAX_imm(uint32_t fetchdat)
|
||||
|
|
@ -23,7 +23,7 @@ static int opIN_EAX_imm(uint32_t fetchdat)
|
|||
check_io_perm(port + 2);
|
||||
check_io_perm(port + 3);
|
||||
EAX = inl(port);
|
||||
cycles -= 12;
|
||||
CLOCK_CYCLES(12);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ static int opOUT_AL_imm(uint32_t fetchdat)
|
|||
uint16_t port = (uint16_t)getbytef();
|
||||
check_io_perm(port);
|
||||
outb(port, AL);
|
||||
cycles -= 10;
|
||||
CLOCK_CYCLES(10);
|
||||
return 0;
|
||||
}
|
||||
static int opOUT_AX_imm(uint32_t fetchdat)
|
||||
|
|
@ -41,7 +41,7 @@ static int opOUT_AX_imm(uint32_t fetchdat)
|
|||
check_io_perm(port);
|
||||
check_io_perm(port + 1);
|
||||
outw(port, AX);
|
||||
cycles -= 10;
|
||||
CLOCK_CYCLES(10);
|
||||
return 0;
|
||||
}
|
||||
static int opOUT_EAX_imm(uint32_t fetchdat)
|
||||
|
|
@ -52,7 +52,7 @@ static int opOUT_EAX_imm(uint32_t fetchdat)
|
|||
check_io_perm(port + 2);
|
||||
check_io_perm(port + 3);
|
||||
outl(port, EAX);
|
||||
cycles -= 10;
|
||||
CLOCK_CYCLES(10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ static int opIN_AL_DX(uint32_t fetchdat)
|
|||
{
|
||||
check_io_perm(DX);
|
||||
AL = inb(DX);
|
||||
cycles -= 12;
|
||||
CLOCK_CYCLES(12);
|
||||
return 0;
|
||||
}
|
||||
static int opIN_AX_DX(uint32_t fetchdat)
|
||||
|
|
@ -68,7 +68,7 @@ static int opIN_AX_DX(uint32_t fetchdat)
|
|||
check_io_perm(DX);
|
||||
check_io_perm(DX + 1);
|
||||
AX = inw(DX);
|
||||
cycles -= 12;
|
||||
CLOCK_CYCLES(12);
|
||||
return 0;
|
||||
}
|
||||
static int opIN_EAX_DX(uint32_t fetchdat)
|
||||
|
|
@ -78,7 +78,7 @@ static int opIN_EAX_DX(uint32_t fetchdat)
|
|||
check_io_perm(DX + 2);
|
||||
check_io_perm(DX + 3);
|
||||
EAX = inl(DX);
|
||||
cycles -= 12;
|
||||
CLOCK_CYCLES(12);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ static int opOUT_AL_DX(uint32_t fetchdat)
|
|||
{
|
||||
check_io_perm(DX);
|
||||
outb(DX, AL);
|
||||
cycles -= 11;
|
||||
CLOCK_CYCLES(11);
|
||||
return 0;
|
||||
}
|
||||
static int opOUT_AX_DX(uint32_t fetchdat)
|
||||
|
|
@ -95,7 +95,7 @@ static int opOUT_AX_DX(uint32_t fetchdat)
|
|||
check_io_perm(DX);
|
||||
check_io_perm(DX + 1);
|
||||
outw(DX, AX);
|
||||
cycles -= 11;
|
||||
CLOCK_CYCLES(11);
|
||||
return 0;
|
||||
}
|
||||
static int opOUT_EAX_DX(uint32_t fetchdat)
|
||||
|
|
@ -105,6 +105,6 @@ static int opOUT_EAX_DX(uint32_t fetchdat)
|
|||
check_io_perm(DX + 2);
|
||||
check_io_perm(DX + 3);
|
||||
outl(DX, EAX);
|
||||
cycles -= 11;
|
||||
CLOCK_CYCLES(11);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue