Assorted warning fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
static int
|
||||
opCBW(uint32_t fetchdat)
|
||||
opCBW(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
AH = (AL & 0x80) ? 0xff : 0;
|
||||
CLOCK_CYCLES(3);
|
||||
@@ -7,7 +7,7 @@ opCBW(uint32_t fetchdat)
|
||||
return 0;
|
||||
}
|
||||
static int
|
||||
opCWDE(uint32_t fetchdat)
|
||||
opCWDE(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
EAX = (AX & 0x8000) ? (0xffff0000 | AX) : AX;
|
||||
CLOCK_CYCLES(3);
|
||||
@@ -15,7 +15,7 @@ opCWDE(uint32_t fetchdat)
|
||||
return 0;
|
||||
}
|
||||
static int
|
||||
opCWD(uint32_t fetchdat)
|
||||
opCWD(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
DX = (AX & 0x8000) ? 0xFFFF : 0;
|
||||
CLOCK_CYCLES(2);
|
||||
@@ -23,7 +23,7 @@ opCWD(uint32_t fetchdat)
|
||||
return 0;
|
||||
}
|
||||
static int
|
||||
opCDQ(uint32_t fetchdat)
|
||||
opCDQ(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
EDX = (EAX & 0x80000000) ? 0xffffffff : 0;
|
||||
CLOCK_CYCLES(2);
|
||||
@@ -32,7 +32,7 @@ opCDQ(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opNOP(uint32_t fetchdat)
|
||||
opNOP(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
CLOCK_CYCLES((is486) ? 1 : 3);
|
||||
PREFETCH_RUN(3, 1, -1, 0, 0, 0, 0, 0);
|
||||
@@ -40,7 +40,7 @@ opNOP(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opSETALC(uint32_t fetchdat)
|
||||
opSETALC(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
AL = (CF_SET()) ? 0xff : 0;
|
||||
CLOCK_CYCLES(timing_rr);
|
||||
@@ -701,7 +701,7 @@ opF7_l_a32(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opHLT(uint32_t fetchdat)
|
||||
opHLT(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if ((CPL || (cpu_state.eflags & VM_FLAG)) && (cr0 & 1)) {
|
||||
x86gpf(NULL, 0);
|
||||
@@ -856,7 +856,7 @@ opBOUND_l_a32(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opCLTS(uint32_t fetchdat)
|
||||
opCLTS(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if ((CPL || (cpu_state.eflags & VM_FLAG)) && (cr0 & 1)) {
|
||||
x86gpf(NULL, 0);
|
||||
@@ -869,14 +869,14 @@ opCLTS(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opINVD(uint32_t fetchdat)
|
||||
opINVD(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
CLOCK_CYCLES(1000);
|
||||
CPU_BLOCK_END();
|
||||
return 0;
|
||||
}
|
||||
static int
|
||||
opWBINVD(uint32_t fetchdat)
|
||||
opWBINVD(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if ((CPL || (cpu_state.eflags & VM_FLAG)) && (cr0 & 1)) {
|
||||
x86gpf(NULL, 0);
|
||||
@@ -888,7 +888,7 @@ opWBINVD(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opLOADALL(uint32_t fetchdat)
|
||||
opLOADALL(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if (CPL && (cr0 & 1)) {
|
||||
x86gpf(NULL, 0);
|
||||
@@ -998,7 +998,7 @@ loadall_load_segment(uint32_t addr, x86seg *s)
|
||||
}
|
||||
|
||||
static int
|
||||
opLOADALL386(uint32_t fetchdat)
|
||||
opLOADALL386(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
uint32_t la_addr = es + EDI;
|
||||
|
||||
@@ -1046,7 +1046,7 @@ opLOADALL386(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opCPUID(uint32_t fetchdat)
|
||||
opCPUID(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if (CPUID) {
|
||||
cpu_CPUID();
|
||||
@@ -1059,7 +1059,7 @@ opCPUID(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opRDMSR(uint32_t fetchdat)
|
||||
opRDMSR(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if (cpu_has_feature(CPU_FEATURE_MSR)) {
|
||||
cpu_RDMSR();
|
||||
@@ -1072,7 +1072,7 @@ opRDMSR(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opWRMSR(uint32_t fetchdat)
|
||||
opWRMSR(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if (cpu_has_feature(CPU_FEATURE_MSR)) {
|
||||
cpu_WRMSR();
|
||||
@@ -1085,7 +1085,7 @@ opWRMSR(uint32_t fetchdat)
|
||||
}
|
||||
|
||||
static int
|
||||
opRSM(uint32_t fetchdat)
|
||||
opRSM(UNUSED(uint32_t fetchdat))
|
||||
{
|
||||
if (in_smm) {
|
||||
leave_smm();
|
||||
|
||||
Reference in New Issue
Block a user