Skip to content

Commit 9095a2d

Browse files
authored
[Chores] Format code
1 parent 5c79a30 commit 9095a2d

File tree

5 files changed

+18
-21
lines changed

5 files changed

+18
-21
lines changed

src/core/DynaRec_aa64/recompiler.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void DynaRecCPU::emitDispatcher() {
169169
gen.Str(contextPointer,
170170
MemOperand(sp, -16, PreIndex)); // Save contextPointer register in stack (also align stack pointer)
171171

172-
gen.Mov(contextPointer, (uintptr_t)this); // Load context pointer
172+
gen.Mov(contextPointer, (uintptr_t)this); // Load context pointer
173173

174174
// Back up all our allocateable volatile regs
175175
static_assert((ALLOCATEABLE_NON_VOLATILE_COUNT & 1) == 0); // Make sure we've got an even number of regs
@@ -187,13 +187,13 @@ void DynaRecCPU::emitDispatcher() {
187187

188188
loadThisPointer(arg1.X()); // Poll events
189189
call(recBranchTestWrapper);
190-
gen.Mov(runningPointer, (uintptr_t)PCSX::g_system->runningPtr()); // Move runningPtr to runningPointer register
191-
gen.Ldrb(w0, MemOperand(runningPointer)); // Check if PCSX::g_system->running is true
192-
gen.Cbz(w0, &done); // If it's not, return
190+
gen.Mov(runningPointer, (uintptr_t)PCSX::g_system->runningPtr()); // Move runningPtr to runningPointer register
191+
gen.Ldrb(w0, MemOperand(runningPointer)); // Check if PCSX::g_system->running is true
192+
gen.Cbz(w0, &done); // If it's not, return
193193
gen.Mov(runningPointer, (uintptr_t)PCSX::g_system->quittingPtr()); // Load pointer to "quitting" variable
194-
gen.Ldrb(w0, MemOperand(runningPointer)); // Check if PCSX::g_system->quitting is true
195-
gen.Cbnz(w0, &done); // If it is, return
196-
emitBlockLookup(); // Otherwise, look up next block
194+
gen.Ldrb(w0, MemOperand(runningPointer)); // Check if PCSX::g_system->quitting is true
195+
gen.Cbnz(w0, &done); // If it is, return
196+
emitBlockLookup(); // Otherwise, look up next block
197197

198198
gen.align();
199199

src/core/DynaRec_x64/recompiler.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ void DynaRecCPU::emitDispatcher() {
201201

202202
// Poll events
203203
emitMemberFunctionCall(&PCSX::R3000Acpu::branchTest, this);
204-
gen.mov(runningPointer, (uintptr_t)PCSX::g_system->runningPtr()); // Load pointer to "running" variable
205-
gen.test(Xbyak::util::byte[runningPointer], 1); // Check if PCSX::g_system->running is true
206-
gen.jz(done); // If it's not, return
204+
gen.mov(runningPointer, (uintptr_t)PCSX::g_system->runningPtr()); // Load pointer to "running" variable
205+
gen.test(Xbyak::util::byte[runningPointer], 1); // Check if PCSX::g_system->running is true
206+
gen.jz(done); // If it's not, return
207207
gen.mov(runningPointer, (uintptr_t)PCSX::g_system->quittingPtr()); // Load pointer to "quitting" variable
208-
gen.test(Xbyak::util::byte[runningPointer], 1); // Check if PCSX::g_system->running is true
209-
gen.jnz(done); // If it is, return
210-
emitBlockLookup(); // Otherwise, look up next block
208+
gen.test(Xbyak::util::byte[runningPointer], 1); // Check if PCSX::g_system->running is true
209+
gen.jnz(done); // If it is, return
210+
emitBlockLookup(); // Otherwise, look up next block
211211

212212
gen.align(16);
213213
// Code for exiting JIT context

src/core/debug.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ class Debug {
6767
struct InternalTemporaryList {};
6868
typedef Intrusive::List<Breakpoint, InternalTemporaryList> BreakpointTemporaryListType;
6969

70-
typedef std::function<bool(Breakpoint*, uint32_t address, unsigned width, const char* cause)>
71-
BreakpointInvoker;
70+
typedef std::function<bool(Breakpoint*, uint32_t address, unsigned width, const char* cause)> BreakpointInvoker;
7271

7372
class Breakpoint : public BreakpointTreeType::Node,
7473
public BreakpointUserListType::Node,
@@ -165,8 +164,8 @@ class Debug {
165164
if (m_lastBP == bp) m_lastBP = nullptr;
166165
delete const_cast<Breakpoint*>(bp);
167166
}
168-
void removeAllBreakpoints() {
169-
m_breakpoints.clear();
167+
void removeAllBreakpoints() {
168+
m_breakpoints.clear();
170169
m_lastBP = nullptr;
171170
}
172171

src/core/r3000a.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
#include "core/psxcounters.h"
3333
#include "core/psxemulator.h"
3434
#include "core/psxmem.h"
35+
#include "mips/common/util/mips.hh"
3536
#include "support/file.h"
3637
#include "support/hashtable.h"
37-
#include "mips/common/util/mips.hh"
3838

3939
#if defined(__i386__) || defined(_M_IX86)
4040
#define DYNAREC_NONE // Hahano

src/main/main.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ struct Cleaner {
166166
std::function<void()> f;
167167
};
168168

169-
void handleSignal(int signal) {
170-
PCSX::g_system->quit(-1);
171-
}
169+
void handleSignal(int signal) { PCSX::g_system->quit(-1); }
172170

173171
int pcsxMain(int argc, char **argv) {
174172
ZoneScoped;

0 commit comments

Comments
 (0)