mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Reformat repo to clang-format 7.0 rules
This commit is contained in:
@ -12,12 +12,14 @@
|
||||
#define MSG_WAITALL (8)
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
GDB_SIGTRAP = 5,
|
||||
GDB_SIGTERM = 15,
|
||||
} gdb_signals;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
GDB_BP_TYPE_NONE = 0,
|
||||
GDB_BP_TYPE_X,
|
||||
GDB_BP_TYPE_R,
|
||||
|
@ -16,7 +16,7 @@ struct GekkoOPTemplate
|
||||
Interpreter::Instruction Inst;
|
||||
GekkoOPInfo opinfo;
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
// clang-format off
|
||||
static GekkoOPInfo unknownopinfo = { "unknown_instruction", OpType::Unknown, FL_ENDBLOCK, 0, 0, 0, 0 };
|
||||
|
@ -39,7 +39,7 @@ struct GekkoOPTemplate
|
||||
int opcode;
|
||||
Jit64::Instruction Inst;
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
const GekkoOPTemplate primarytable[] = {
|
||||
{4, &Jit64::DynaRunTable4}, // RunTable4
|
||||
|
@ -226,7 +226,7 @@ void RCX64Reg::Realize()
|
||||
}
|
||||
}
|
||||
|
||||
RCX64Reg::operator X64Reg() const &
|
||||
RCX64Reg::operator X64Reg() const&
|
||||
{
|
||||
if (const preg_t* preg = std::get_if<preg_t>(&contents))
|
||||
{
|
||||
@ -241,7 +241,7 @@ RCX64Reg::operator X64Reg() const &
|
||||
return {};
|
||||
}
|
||||
|
||||
RCX64Reg::operator OpArg() const &
|
||||
RCX64Reg::operator OpArg() const&
|
||||
{
|
||||
return Gen::R(RCX64Reg::operator X64Reg());
|
||||
}
|
||||
|
@ -42,8 +42,8 @@ public:
|
||||
|
||||
void Realize();
|
||||
Gen::OpArg Location() const;
|
||||
operator Gen::OpArg() const & { return Location(); }
|
||||
operator Gen::OpArg() const && = delete;
|
||||
operator Gen::OpArg() const& { return Location(); }
|
||||
operator Gen::OpArg() const&& = delete;
|
||||
bool IsSimpleReg() const { return Location().IsSimpleReg(); }
|
||||
bool IsSimpleReg(Gen::X64Reg reg) const { return Location().IsSimpleReg(reg); }
|
||||
Gen::X64Reg GetSimpleReg() const { return Location().GetSimpleReg(); }
|
||||
@ -81,10 +81,10 @@ public:
|
||||
RCX64Reg& operator=(const RCX64Reg&) = delete;
|
||||
|
||||
void Realize();
|
||||
operator Gen::OpArg() const &;
|
||||
operator Gen::X64Reg() const &;
|
||||
operator Gen::OpArg() const && = delete;
|
||||
operator Gen::X64Reg() const && = delete;
|
||||
operator Gen::OpArg() const&;
|
||||
operator Gen::X64Reg() const&;
|
||||
operator Gen::OpArg() const&& = delete;
|
||||
operator Gen::X64Reg() const&& = delete;
|
||||
|
||||
void Unlock();
|
||||
|
||||
|
@ -47,7 +47,7 @@ struct GekkoOPTemplate
|
||||
_Instruction Inst;
|
||||
// GekkoOPInfo opinfo; // Doesn't need opinfo, Interpreter fills it out
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
constexpr GekkoOPTemplate primarytable[] = {
|
||||
{4, &JitArm64::DynaRunTable4}, // RunTable4
|
||||
|
@ -272,4 +272,4 @@ void Shutdown()
|
||||
g_jit = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace JitInterface
|
||||
|
@ -70,4 +70,4 @@ void CompileExceptionCheck(ExceptionType type);
|
||||
void SetJit(JitBase* jit);
|
||||
|
||||
void Shutdown();
|
||||
}
|
||||
} // namespace JitInterface
|
||||
|
@ -845,35 +845,35 @@ TranslateResult JitCache_TranslateAddress(u32 address)
|
||||
return TranslateResult{true, from_bat, tlb_addr.address};
|
||||
}
|
||||
|
||||
// *********************************************************************************
|
||||
// Warning: Test Area
|
||||
//
|
||||
// This code is for TESTING and it works in interpreter mode ONLY. Some games (like
|
||||
// COD iirc) work thanks to this basic TLB emulation.
|
||||
// It is just a small hack and we have never spend enough time to finalize it.
|
||||
// Cheers PearPC!
|
||||
//
|
||||
// *********************************************************************************
|
||||
// *********************************************************************************
|
||||
// Warning: Test Area
|
||||
//
|
||||
// This code is for TESTING and it works in interpreter mode ONLY. Some games (like
|
||||
// COD iirc) work thanks to this basic TLB emulation.
|
||||
// It is just a small hack and we have never spend enough time to finalize it.
|
||||
// Cheers PearPC!
|
||||
//
|
||||
// *********************************************************************************
|
||||
|
||||
/*
|
||||
* PearPC
|
||||
* ppc_mmu.cc
|
||||
*
|
||||
* Copyright (C) 2003, 2004 Sebastian Biallas (sb@biallas.net)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/*
|
||||
* PearPC
|
||||
* ppc_mmu.cc
|
||||
*
|
||||
* Copyright (C) 2003, 2004 Sebastian Biallas (sb@biallas.net)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#define PPC_EXC_DSISR_PAGE (1 << 30)
|
||||
#define PPC_EXC_DSISR_PROT (1 << 27)
|
||||
|
@ -1021,4 +1021,4 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock* block, CodeBuffer* buffer, std:
|
||||
return address;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace PPCAnalyst
|
||||
|
@ -225,4 +225,4 @@ void FindFunctions(u32 startAddr, u32 endAddr, PPCSymbolDB* func_db);
|
||||
bool AnalyzeFunction(u32 startAddr, Common::Symbol& func, u32 max_size = 0);
|
||||
bool ReanalyzeFunction(u32 start_addr, Common::Symbol& func, u32 max_size = 0);
|
||||
|
||||
} // namespace
|
||||
} // namespace PPCAnalyst
|
||||
|
@ -198,4 +198,4 @@ void LogCompiledInstructions()
|
||||
++time;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace PPCTables
|
||||
|
Reference in New Issue
Block a user