aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/LightningJit/Arm32/MultiBlock.cs
blob: a213c222c44b56848e9afc0108b68b3f355e53d1 (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
using System.Collections.Generic;

namespace Ryujinx.Cpu.LightningJit.Arm32
{
    class MultiBlock
    {
        public readonly List<Block> Blocks;
        public readonly bool HasHostCall;
        public readonly bool IsTruncated;

        public MultiBlock(List<Block> blocks)
        {
            Blocks = blocks;

            Block block = blocks[0];

            HasHostCall = block.HasHostCall;

            for (int index = 1; index < blocks.Count; index++)
            {
                block = blocks[index];

                HasHostCall |= block.HasHostCall;
            }

            block = blocks[^1];

            IsTruncated = block.IsTruncated;
        }
    }
}