Formatting

This commit is contained in:
svc64 2023-12-09 20:16:09 +02:00
parent 652423cfeb
commit 5f5cb73baa
13 changed files with 21 additions and 21 deletions

View file

@ -1,6 +1,6 @@
namespace Ryujinx.Cpu.AppleHv.Arm
{
enum ExceptionLevel: uint
enum ExceptionLevel : uint
{
PstateMask = 0xfffffff0,
EL1h = 0b0101,

View file

@ -269,7 +269,7 @@ namespace Ryujinx.Cpu.AppleHv
case ExceptionClass.SoftwareStepLowerEl:
HvApi.hv_vcpu_get_sys_reg(vcpuHandle, HvSysReg.SPSR_EL1, out ulong spsr).ThrowOnError();
spsr &= ~((ulong)(1 << 21));
HvApi.hv_vcpu_set_sys_reg(vcpuHandle, HvSysReg.SPSR_EL1, spsr).ThrowOnError();
HvApi.hv_vcpu_set_sys_reg(vcpuHandle, HvSysReg.SPSR_EL1, spsr).ThrowOnError();
HvApi.hv_vcpu_set_sys_reg(vcpuHandle, HvSysReg.MDSCR_EL1, 0);
ReturnToPool(vcpu);
StepBarrier.SignalAndWait();

View file

@ -1,9 +1,9 @@
using ARMeilleure.State;
using Ryujinx.Common;
using Ryujinx.Common.Logging;
using Ryujinx.Memory;
using Ryujinx.HLE.HOS.Kernel;
using Ryujinx.HLE.HOS.Kernel.Threading;
using Ryujinx.Memory;
using System;
using System.Collections.Concurrent;
using System.IO;
@ -151,13 +151,13 @@ namespace Ryujinx.HLE.Debugger
WriteStream.WriteByte((byte)'-');
break;
case CommandMessage {Command: var cmd}:
case CommandMessage { Command: var cmd }:
Logger.Debug?.Print(LogClass.GdbStub, $"Received Command: {cmd}");
WriteStream.WriteByte((byte)'+');
ProcessCommand(cmd);
break;
case ThreadBreakMessage {Context: var ctx}:
case ThreadBreakMessage { Context: var ctx }:
DebugProcess.DebugStop();
Reply($"T05thread:{ctx.ThreadUid:x};");
break;
@ -353,7 +353,7 @@ namespace Ryujinx.HLE.Debugger
break;
}
default:
unknownCommand:
unknownCommand:
Logger.Notice.Print(LogClass.GdbStub, $"Unknown command: {cmd}");
Reply("");
break;
@ -654,7 +654,7 @@ namespace Ryujinx.HLE.Debugger
}
}
eof:
eof:
Logger.Notice.Print(LogClass.GdbStub, "GDB client lost connection");
ReadStream.Close();
ReadStream = null;

View file

@ -1,5 +1,5 @@
using Ryujinx.Memory;
using Ryujinx.HLE.HOS.Kernel.Threading;
using Ryujinx.HLE.HOS.Kernel.Threading;
using Ryujinx.Memory;
namespace Ryujinx.HLE.Debugger
{

View file

@ -169,7 +169,7 @@ namespace Ryujinx.HLE
/// </summary>
public Action RefreshInputConfig { internal get; set; }
/// <summary>
/// <summary>
/// Enables gdbstub to allow for debugging of the guest .
/// </summary>
public bool EnableGdbStub { get; internal set; }
@ -205,8 +205,8 @@ namespace Ryujinx.HLE
bool useHypervisor,
string multiplayerLanInterfaceId,
MultiplayerMode multiplayerMode,
bool enableGdbStub,
ushort gdbStubPort)
bool enableGdbStub,
ushort gdbStubPort)
{
VirtualFileSystem = virtualFileSystem;
LibHacHorizonManager = libHacHorizonManager;

View file

@ -1476,7 +1476,7 @@ namespace Ryujinx.UI.Common.Configuration
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 38.");
configurationFileFormat.EnableGdbStub = false;
configurationFileFormat.GdbStubPort = 55555;
configurationFileFormat.GdbStubPort = 55555;
configurationFileUpdated = true;
}