mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-07-08 12:09:06 +00:00
@@ -359,7 +359,7 @@ namespace Ryujinx.Cpu.AppleHv
|
||||
|
||||
private static void ValidateEntriesCount(int count)
|
||||
{
|
||||
Debug.Assert(count >= 0 && count <= LevelCount, $"Entries count {count} is invalid.");
|
||||
Debug.Assert(count is >= 0 and <= LevelCount, $"Entries count {count} is invalid.");
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace Ryujinx.Cpu.AppleHv
|
||||
address = SynchronousException(memoryManager, ref vcpu);
|
||||
HvApi.hv_vcpu_set_reg(vcpu.Handle, HvReg.PC, address).ThrowOnError();
|
||||
}
|
||||
else if (reason == HvExitReason.Canceled || reason == HvExitReason.VTimerActivated)
|
||||
else if (reason is HvExitReason.Canceled or HvExitReason.VTimerActivated)
|
||||
{
|
||||
if (GetAndClearInterruptRequested())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user