aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/State/IExecutionContext.cs
blob: df91b7a1e759a2b48f7231ff40ea14b43c2fd9e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;

namespace ARMeilleure.State
{
    public interface IExecutionContext : IDisposable
    {
        uint CtrEl0   { get; }
        uint DczidEl0 { get; }

        ulong CntfrqEl0 { get; set; }
        ulong CntpctEl0 { get; }

        long TpidrEl0 { get; set; }
        long Tpidr    { get; set; }

        FPCR Fpcr { get; set; }
        FPSR Fpsr { get; set; }

        bool IsAarch32 { get; set; }

        bool Running { get; set; }

        event EventHandler<EventArgs>              Interrupt;
        event EventHandler<InstExceptionEventArgs> Break;
        event EventHandler<InstExceptionEventArgs> SupervisorCall;
        event EventHandler<InstUndefinedEventArgs> Undefined;

        ulong GetX(int index);
        void  SetX(int index, ulong value);

        V128 GetV(int index);

        bool GetPstateFlag(PState flag);

        void RequestInterrupt();
    }
}