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 namespace Ryujinx.Cpu.AppleHv.Arm
{ {
enum ExceptionLevel: uint enum ExceptionLevel : uint
{ {
PstateMask = 0xfffffff0, PstateMask = 0xfffffff0,
EL1h = 0b0101, EL1h = 0b0101,

View file

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

View file

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

View file

@ -169,7 +169,7 @@ namespace Ryujinx.HLE
/// </summary> /// </summary>
public Action RefreshInputConfig { internal get; set; } public Action RefreshInputConfig { internal get; set; }
/// <summary> /// <summary>
/// Enables gdbstub to allow for debugging of the guest . /// Enables gdbstub to allow for debugging of the guest .
/// </summary> /// </summary>
public bool EnableGdbStub { get; internal set; } public bool EnableGdbStub { get; internal set; }
@ -205,8 +205,8 @@ namespace Ryujinx.HLE
bool useHypervisor, bool useHypervisor,
string multiplayerLanInterfaceId, string multiplayerLanInterfaceId,
MultiplayerMode multiplayerMode, MultiplayerMode multiplayerMode,
bool enableGdbStub, bool enableGdbStub,
ushort gdbStubPort) ushort gdbStubPort)
{ {
VirtualFileSystem = virtualFileSystem; VirtualFileSystem = virtualFileSystem;
LibHacHorizonManager = libHacHorizonManager; 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."); Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 38.");
configurationFileFormat.EnableGdbStub = false; configurationFileFormat.EnableGdbStub = false;
configurationFileFormat.GdbStubPort = 55555; configurationFileFormat.GdbStubPort = 55555;
configurationFileUpdated = true; configurationFileUpdated = true;
} }