mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-14 13:45:59 +00:00
Sort opcodes by their indices. Group them too when applicable (#945)
This commit is contained in:
parent
c0f7de9fde
commit
07de1ee977
7 changed files with 1634 additions and 1543 deletions
|
@ -9,6 +9,7 @@ static constexpr u32 SQ_SRC_LITERAL = 0xFF;
|
|||
|
||||
void Translator::EmitScalarMemory(const GcnInst& inst) {
|
||||
switch (inst.opcode) {
|
||||
// SMRD
|
||||
case Opcode::S_LOAD_DWORDX4:
|
||||
return S_LOAD_DWORD(4, inst);
|
||||
case Opcode::S_LOAD_DWORDX8:
|
||||
|
@ -30,6 +31,8 @@ void Translator::EmitScalarMemory(const GcnInst& inst) {
|
|||
}
|
||||
}
|
||||
|
||||
// SMRD
|
||||
|
||||
void Translator::S_LOAD_DWORD(int num_dwords, const GcnInst& inst) {
|
||||
const auto& smrd = inst.control.smrd;
|
||||
const u32 dword_offset = [&] -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue