ProcessExecutionContext.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using ARMeilleure.State;
  2. using Ryujinx.Cpu;
  3. namespace Ryujinx.HLE.HOS.Kernel.Process
  4. {
  5. class ProcessExecutionContext : IExecutionContext
  6. {
  7. public ulong Pc => 0UL;
  8. public ulong CntfrqEl0 { get; set; }
  9. public ulong CntpctEl0 => 0UL;
  10. public long TpidrEl0 { get; set; }
  11. public long TpidrroEl0 { get; set; }
  12. public uint Pstate { get; set; }
  13. public uint Fpcr { get; set; }
  14. public uint Fpsr { get; set; }
  15. public bool IsAarch32 { get => false; set { } }
  16. public bool Running { get; private set; } = true;
  17. private readonly ulong[] _x = new ulong[32];
  18. public ulong GetX(int index) => _x[index];
  19. public void SetX(int index, ulong value) => _x[index] = value;
  20. public V128 GetV(int index) => default;
  21. public void SetV(int index, V128 value) { }
  22. public void RequestInterrupt()
  23. {
  24. }
  25. public void StopRunning()
  26. {
  27. Running = false;
  28. }
  29. public void Dispose()
  30. {
  31. }
  32. }
  33. }