ProcessContext.cs 789 B

12345678910111213141516171819202122232425262728293031323334
  1. using Ryujinx.Cpu;
  2. using Ryujinx.Memory;
  3. using System;
  4. namespace Ryujinx.HLE.HOS.Kernel.Process
  5. {
  6. class ProcessContext : IProcessContext
  7. {
  8. public IVirtualMemoryManager AddressSpace { get; }
  9. public ProcessContext(IVirtualMemoryManager asManager)
  10. {
  11. AddressSpace = asManager;
  12. }
  13. public IExecutionContext CreateExecutionContext(ExceptionCallbacks exceptionCallbacks)
  14. {
  15. return new ProcessExecutionContext();
  16. }
  17. public void Execute(IExecutionContext context, ulong codeAddress)
  18. {
  19. throw new NotSupportedException();
  20. }
  21. public void InvalidateCacheRegion(ulong address, ulong size)
  22. {
  23. }
  24. public void Dispose()
  25. {
  26. }
  27. }
  28. }