ICpuEngine.cs 673 B

123456789101112131415161718
  1. using ARMeilleure.Memory;
  2. namespace Ryujinx.Cpu
  3. {
  4. /// <summary>
  5. /// CPU execution engine interface.
  6. /// </summary>
  7. public interface ICpuEngine
  8. {
  9. /// <summary>
  10. /// Creates a new CPU context that can be used to run code for multiple threads sharing an address space.
  11. /// </summary>
  12. /// <param name="memoryManager">Memory manager for the address space of the context</param>
  13. /// <param name="for64Bit">Indicates if the context will be used to run 64-bit or 32-bit Arm code</param>
  14. /// <returns>CPU context</returns>
  15. ICpuContext CreateCpuContext(IMemoryManager memoryManager, bool for64Bit);
  16. }
  17. }