mirror of https://github.com/PCSX2/pcsx2.git
Merge branch 'master' of https://github.com/PCSX2/pcsx2
This commit is contained in:
commit
a3d5d9112a
|
@ -95,7 +95,7 @@ __fi void _memset16_unaligned( void* dest, u16 data, size_t size )
|
||||||
*dst = data;
|
*dst = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
__fi void HostSys::Munmap( void* base, u32 size )
|
__fi void HostSys::Munmap( void* base, size_t size )
|
||||||
{
|
{
|
||||||
Munmap( (uptr)base, size );
|
Munmap( (uptr)base, size );
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,16 +29,7 @@ namespace HashTools {
|
||||||
/// <seealso cref="CommonHashClass"/>
|
/// <seealso cref="CommonHashClass"/>
|
||||||
const CommonHashClass GetCommonHash;
|
const CommonHashClass GetCommonHash;
|
||||||
|
|
||||||
#undef get16bits
|
|
||||||
#if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \
|
|
||||||
|| defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__)
|
|
||||||
#define get16bits(d) (*((const u16 *) (d)))
|
#define get16bits(d) (*((const u16 *) (d)))
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined (get16bits)
|
|
||||||
#define get16bits(d) ((((u32)(((const ubyte *)(d))[1])) << 8)\
|
|
||||||
+(u32)(((const ubyte *)(d))[0]) )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculates a hash value for an arbitrary set of binary data.
|
/// Calculates a hash value for an arbitrary set of binary data.
|
||||||
|
|
|
@ -455,7 +455,7 @@ SpatialArrayReserve& SpatialArrayReserve::SetBlockSizeInPages( uint pages )
|
||||||
//
|
//
|
||||||
// This method must be called prior to accessing or modifying the array contents. Calls to
|
// This method must be called prior to accessing or modifying the array contents. Calls to
|
||||||
// a modified buffer will be ignored (and generate an assertion in dev/debug modes).
|
// a modified buffer will be ignored (and generate an assertion in dev/debug modes).
|
||||||
uint SpatialArrayReserve::SetBlockSize( uint bytes )
|
uptr SpatialArrayReserve::SetBlockSize( uptr bytes )
|
||||||
{
|
{
|
||||||
SetBlockSizeInPages((bytes + __pagesize - 1) / __pagesize);
|
SetBlockSizeInPages((bytes + __pagesize - 1) / __pagesize);
|
||||||
return m_blocksize * __pagesize;
|
return m_blocksize * __pagesize;
|
||||||
|
|
|
@ -502,7 +502,6 @@ s32 cdvdReadSubQ(s32 lsn, cdvdSubQ* subq)
|
||||||
|
|
||||||
static void cdvdDetectDisk()
|
static void cdvdDetectDisk()
|
||||||
{
|
{
|
||||||
wxString str;
|
|
||||||
cdvd.Type = DoCDVDdetectDiskType();
|
cdvd.Type = DoCDVDdetectDiskType();
|
||||||
cdvdReloadElfInfo();
|
cdvdReloadElfInfo();
|
||||||
}
|
}
|
||||||
|
|
|
@ -607,9 +607,6 @@ void (*COP2SPECIAL2PrintTable[128])( string& output ) =
|
||||||
|
|
||||||
void disR5900Fasm( string& output, u32 code, u32 pc )
|
void disR5900Fasm( string& output, u32 code, u32 pc )
|
||||||
{
|
{
|
||||||
string dbuf;
|
|
||||||
char obuf[48];
|
|
||||||
|
|
||||||
opcode_addr = pc;
|
opcode_addr = pc;
|
||||||
disasmOpcode = code;
|
disasmOpcode = code;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue