mirror of https://github.com/PCSX2/pcsx2.git
PCSX2-Core: Clean up some warnings on MSVC
x86emitter : Convert variable type from u8 to bool. recVTLB: Cast "sign" to bool to prevent a warning. R5900OpcodeImpl: Cast all the values in array to u64 instead of s64.
This commit is contained in:
parent
79d019b5bb
commit
72661e7c16
|
@ -426,10 +426,10 @@ void EmitRex( const xRegisterBase& reg1, const void* src )
|
|||
|
||||
void EmitRex( const xRegisterBase& reg1, const xIndirectVoid& sib )
|
||||
{
|
||||
u8 w = reg1.IsWide();
|
||||
u8 r = reg1.IsExtended();
|
||||
u8 x = sib.Index.IsExtended();
|
||||
u8 b = sib.Base.IsExtended();
|
||||
bool w = reg1.IsWide();
|
||||
bool r = reg1.IsExtended();
|
||||
bool x = sib.Index.IsExtended();
|
||||
bool b = sib.Base.IsExtended();
|
||||
EmitRex(w, r, x, b);
|
||||
}
|
||||
|
||||
|
|
|
@ -666,12 +666,12 @@ void LD()
|
|||
}
|
||||
|
||||
static const u64 LDL_MASK[8] =
|
||||
{ 0x00ffffffffffffffLL, 0x0000ffffffffffffLL, 0x000000ffffffffffLL, 0x00000000ffffffffLL,
|
||||
0x0000000000ffffffLL, 0x000000000000ffffLL, 0x00000000000000ffLL, 0x0000000000000000LL
|
||||
{ 0x00ffffffffffffffULL, 0x0000ffffffffffffULL, 0x000000ffffffffffULL, 0x00000000ffffffffULL,
|
||||
0x0000000000ffffffULL, 0x000000000000ffffULL, 0x00000000000000ffULL, 0x0000000000000000ULL
|
||||
};
|
||||
static const u64 LDR_MASK[8] =
|
||||
{ 0x0000000000000000LL, 0xff00000000000000LL, 0xffff000000000000LL, 0xffffff0000000000LL,
|
||||
0xffffffff00000000LL, 0xffffffffff000000LL, 0xffffffffffff0000LL, 0xffffffffffffff00LL
|
||||
{ 0x0000000000000000ULL, 0xff00000000000000ULL, 0xffff000000000000ULL, 0xffffff0000000000ULL,
|
||||
0xffffffff00000000ULL, 0xffffffffff000000ULL, 0xffffffffffff0000ULL, 0xffffffffffffff00ULL
|
||||
};
|
||||
|
||||
static const u8 LDR_SHIFT[8] = { 0, 8, 16, 24, 32, 40, 48, 56 };
|
||||
|
@ -797,12 +797,12 @@ void SD()
|
|||
}
|
||||
|
||||
static const u64 SDL_MASK[8] =
|
||||
{ 0xffffffffffffff00LL, 0xffffffffffff0000LL, 0xffffffffff000000LL, 0xffffffff00000000LL,
|
||||
0xffffff0000000000LL, 0xffff000000000000LL, 0xff00000000000000LL, 0x0000000000000000LL
|
||||
{ 0xffffffffffffff00ULL, 0xffffffffffff0000ULL, 0xffffffffff000000ULL, 0xffffffff00000000ULL,
|
||||
0xffffff0000000000ULL, 0xffff000000000000ULL, 0xff00000000000000ULL, 0x0000000000000000ULL
|
||||
};
|
||||
static const u64 SDR_MASK[8] =
|
||||
{ 0x0000000000000000LL, 0x00000000000000ffLL, 0x000000000000ffffLL, 0x0000000000ffffffLL,
|
||||
0x00000000ffffffffLL, 0x000000ffffffffffLL, 0x0000ffffffffffffLL, 0x00ffffffffffffffLL
|
||||
{ 0x0000000000000000ULL, 0x00000000000000ffULL, 0x000000000000ffffULL, 0x0000000000ffffffULL,
|
||||
0x00000000ffffffffULL, 0x000000ffffffffffULL, 0x0000ffffffffffffULL, 0x00ffffffffffffffULL
|
||||
};
|
||||
|
||||
static const u8 SDL_SHIFT[8] = { 56, 48, 40, 32, 24, 16, 8, 0 };
|
||||
|
|
|
@ -327,7 +327,7 @@ void vtlb_dynarec_init()
|
|||
{
|
||||
xSetPtr( GetIndirectDispatcherPtr( mode, bits, !!sign ) );
|
||||
|
||||
DynGen_IndirectTlbDispatcher( mode, bits, sign );
|
||||
DynGen_IndirectTlbDispatcher( mode, bits, !!sign );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue