mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-25 17:15:46 +00:00
5001f78b1d
* Implement faster address translation and write tracking on the MMU * Rename MemoryAlloc to MemoryManagement, and other nits * Support multi-level page tables * Fix typo * Reword comment a bit * Support scalar vector loads/stores on the memory fast path, and minor fixes * Add missing cast * Alignment * Fix VirtualFree function signature * Change MemoryProtection enum to uint aswell for consistency
35 lines
No EOL
929 B
C#
35 lines
No EOL
929 B
C#
using ChocolArm64.Events;
|
|
using ChocolArm64.State;
|
|
using Ryujinx.HLE.HOS.Kernel.Process;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
|
{
|
|
partial class SvcHandler
|
|
{
|
|
private Switch _device;
|
|
private KProcess _process;
|
|
private Horizon _system;
|
|
|
|
public SvcHandler(Switch device, KProcess process)
|
|
{
|
|
_device = device;
|
|
_process = process;
|
|
_system = device.System;
|
|
}
|
|
|
|
public void SvcCall(object sender, InstExceptionEventArgs e)
|
|
{
|
|
Action<SvcHandler, CpuThreadState> svcFunc = SvcTable.GetSvcFunc(e.Id);
|
|
|
|
if (svcFunc == null)
|
|
{
|
|
throw new NotImplementedException($"SVC 0x{e.Id:X4} is not implemented.");
|
|
}
|
|
|
|
CpuThreadState threadState = (CpuThreadState)sender;
|
|
|
|
svcFunc(this, threadState);
|
|
}
|
|
}
|
|
} |