mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Fix Travis compiling
This commit is contained in:
parent
cdfef3bf9e
commit
16b4b9bf40
@ -820,5 +820,5 @@ __forceinline Tto convert_le_be(Tfrom&& value)
|
||||
template<typename Tto, typename Tfrom>
|
||||
__forceinline void convert_le_be(Tto& dst, Tfrom&& src)
|
||||
{
|
||||
dst = convert_le_be_t<Tto, Tfrom>::func(src)
|
||||
dst = convert_le_be_t<Tto, Tfrom>::func(src);
|
||||
}
|
@ -292,6 +292,6 @@ public:
|
||||
|
||||
u32 get_id() const
|
||||
{
|
||||
thread->GetId();
|
||||
return thread->GetId();
|
||||
}
|
||||
};
|
@ -187,7 +187,7 @@ private:
|
||||
case 0x104:
|
||||
case 0x105:
|
||||
case 0x106:
|
||||
case 0x107: CPU.USPRG[n - 0x100] = value; break;
|
||||
case 0x107: CPU.USPRG[n - 0x100] = value; return;
|
||||
|
||||
case 0x10C: UNK("WriteSPR: Write to time-based SPR. Report this to a developer!"); return;
|
||||
|
||||
@ -198,7 +198,7 @@ private:
|
||||
case 0x114:
|
||||
case 0x115:
|
||||
case 0x116:
|
||||
case 0x117: CPU.SPRG[n - 0x110] = value; break;
|
||||
case 0x117: CPU.SPRG[n - 0x110] = value; return;
|
||||
}
|
||||
|
||||
UNK(fmt::Format("WriteSPR error: Unknown SPR 0x%x!", n));
|
||||
|
@ -201,8 +201,8 @@ namespace vm
|
||||
return m_addr;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void set(T&& value)
|
||||
template<typename U>
|
||||
void set(U&& value)
|
||||
{
|
||||
m_addr = convert_le_be<AT>(value);
|
||||
}
|
||||
|
@ -900,7 +900,7 @@ int cellDmuxEnableEs(u32 demuxerHandle, vm::ptr<const CellCodecEsFilterId> esFil
|
||||
*esHandle = id;
|
||||
|
||||
cellDmux->Warning("*** New ES(dmux=%d, addr=0x%x, size=0x%x, filter(0x%x, 0x%x, 0x%x, 0x%x), cb=0x%x(arg=0x%x), spec=0x%x): id = %d",
|
||||
demuxerHandle, es->memAddr, es->memSize, es->fidMajor, es->fidMinor, es->sup1, es->sup2, (u32)esCb->cbEsMsgFunc, es->cbArg, es->spec, id);
|
||||
demuxerHandle, es->memAddr, es->memSize, es->fidMajor, es->fidMinor, es->sup1, es->sup2, esCb->cbEsMsgFunc.addr(), es->cbArg, es->spec, id);
|
||||
|
||||
DemuxerTask task(dmuxEnableEs);
|
||||
task.es.es = id;
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "Emu/Cell/RawSPUThread.h"
|
||||
#include "Emu/FS/vfsStreamMemory.h"
|
||||
#include "Emu/FS/vfsFile.h"
|
||||
#include "Loader/elf32.h"
|
||||
#include "Loader/ELF32.h"
|
||||
#include "Crypto/unself.h"
|
||||
#include "sys_spu.h"
|
||||
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
proc_param.malloc_pagesize = be_t<u32>::make(0x100000);
|
||||
proc_param.sdk_version = be_t<u32>::make(0x360001);
|
||||
proc_param.primary_stacksize = be_t<u32>::make(0x100000);
|
||||
proc_param.primary_prio = be_t<u32>::make(0x50);
|
||||
proc_param.primary_prio = be_t<s32>::make(0x50);
|
||||
}
|
||||
|
||||
void SetTLSData(const u64 addr, const u64 filesz, const u64 memsz)
|
||||
|
@ -36,7 +36,7 @@ namespace loader
|
||||
return broken_file;
|
||||
}
|
||||
|
||||
LOG_ERROR(LOADER, "m_ehdr.e_type = 0x%x", (u16)(m_ehdr.is_le() ? m_ehdr.data_le.e_type : m_ehdr.data_be.e_type));
|
||||
LOG_WARNING(LOADER, "m_ehdr.e_type = 0x%x", (u16)(m_ehdr.is_le() ? m_ehdr.data_le.e_type : m_ehdr.data_be.e_type));
|
||||
|
||||
if (m_ehdr.data_le.e_phnum)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ namespace loader
|
||||
return broken_file;
|
||||
}
|
||||
|
||||
LOG_ERROR(LOADER, "m_ehdr.e_type = 0x%x", m_ehdr.e_type.ToLE());
|
||||
LOG_WARNING(LOADER, "m_ehdr.e_type = 0x%x", m_ehdr.e_type.ToLE());
|
||||
|
||||
if (m_ehdr.e_machine != MACHINE_PPC64 && m_ehdr.e_machine != MACHINE_SPU)
|
||||
{
|
||||
@ -94,7 +94,7 @@ namespace loader
|
||||
{
|
||||
for (auto &phdr : m_phdrs)
|
||||
{
|
||||
switch (phdr.p_type)
|
||||
switch (phdr.p_type.ToLE())
|
||||
{
|
||||
case 0x1: //load
|
||||
if (phdr.p_memsz)
|
||||
@ -366,7 +366,7 @@ namespace loader
|
||||
{
|
||||
for (auto &phdr : m_phdrs)
|
||||
{
|
||||
switch (phdr.p_type)
|
||||
switch (phdr.p_type.ToLE())
|
||||
{
|
||||
case 0x00000001: //LOAD
|
||||
if (phdr.p_memsz)
|
||||
@ -448,8 +448,8 @@ namespace loader
|
||||
|
||||
static const u32 tbl_section_size = 2 * 4;
|
||||
static const u32 dst_section_size = 3 * 4;
|
||||
auto& tbl = ptr<u32>::make(alloc(stub->s_imports * tbl_section_size));
|
||||
auto& dst = ptr<u32>::make(alloc(stub->s_imports * dst_section_size));
|
||||
auto tbl = ptr<u32>::make(alloc(stub->s_imports * tbl_section_size));
|
||||
auto dst = ptr<u32>::make(alloc(stub->s_imports * dst_section_size));
|
||||
|
||||
for (u32 i = 0; i < stub->s_imports; ++i)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user