translator: Add more instructions
This commit is contained in:
parent
7fb811ace5
commit
0a31dd6efb
|
@ -1064,16 +1064,7 @@ ScePthread PThreadPool::Create() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN64
|
|
||||||
auto* ret = new PthreadInternal{};
|
auto* ret = new PthreadInternal{};
|
||||||
#else
|
|
||||||
// TODO: Linux specific hack
|
|
||||||
static u8* hint_address = reinterpret_cast<u8*>(0x7FFFFC000ULL);
|
|
||||||
auto* ret = reinterpret_cast<PthreadInternal*>(
|
|
||||||
mmap(hint_address, sizeof(PthreadInternal), PROT_READ | PROT_WRITE,
|
|
||||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0));
|
|
||||||
hint_address += Common::AlignUp(sizeof(PthreadInternal), 4_KB);
|
|
||||||
#endif
|
|
||||||
ret->is_free = false;
|
ret->is_free = false;
|
||||||
ret->is_detached = false;
|
ret->is_detached = false;
|
||||||
ret->is_almost_done = false;
|
ret->is_almost_done = false;
|
||||||
|
|
|
@ -29,6 +29,8 @@ void Translator::EmitScalarAlu(const GcnInst& inst) {
|
||||||
return S_CMP(ConditionOp::LG, true, inst);
|
return S_CMP(ConditionOp::LG, true, inst);
|
||||||
case Opcode::S_CMP_GT_I32:
|
case Opcode::S_CMP_GT_I32:
|
||||||
return S_CMP(ConditionOp::GT, true, inst);
|
return S_CMP(ConditionOp::GT, true, inst);
|
||||||
|
case Opcode::S_CMP_LE_I32:
|
||||||
|
return S_CMP(ConditionOp::LE, true, inst);
|
||||||
case Opcode::S_CMP_GE_I32:
|
case Opcode::S_CMP_GE_I32:
|
||||||
return S_CMP(ConditionOp::GE, true, inst);
|
return S_CMP(ConditionOp::GE, true, inst);
|
||||||
case Opcode::S_CMP_EQ_I32:
|
case Opcode::S_CMP_EQ_I32:
|
||||||
|
|
|
@ -91,6 +91,11 @@ void Translator::EmitVectorMemory(const GcnInst& inst) {
|
||||||
case Opcode::BUFFER_STORE_FORMAT_XYZW:
|
case Opcode::BUFFER_STORE_FORMAT_XYZW:
|
||||||
return BUFFER_STORE_FORMAT(4, false, true, inst);
|
return BUFFER_STORE_FORMAT(4, false, true, inst);
|
||||||
|
|
||||||
|
case Opcode::TBUFFER_STORE_FORMAT_X:
|
||||||
|
return BUFFER_STORE_FORMAT(1, true, true, inst);
|
||||||
|
case Opcode::TBUFFER_STORE_FORMAT_XYZ:
|
||||||
|
return BUFFER_STORE_FORMAT(3, true, true, inst);
|
||||||
|
|
||||||
case Opcode::BUFFER_STORE_DWORD:
|
case Opcode::BUFFER_STORE_DWORD:
|
||||||
return BUFFER_STORE_FORMAT(1, false, false, inst);
|
return BUFFER_STORE_FORMAT(1, false, false, inst);
|
||||||
case Opcode::BUFFER_STORE_DWORDX2:
|
case Opcode::BUFFER_STORE_DWORDX2:
|
||||||
|
|
Loading…
Reference in New Issue