mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-20 07:38:42 +02:00
* Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing
296 lines
3.9 KiB
C#
296 lines
3.9 KiB
C#
// ReSharper disable InconsistentNaming
|
|
namespace Ryujinx.Tests.Unicorn.Native
|
|
{
|
|
public enum ArmRegister
|
|
{
|
|
INVALID = 0,
|
|
|
|
X29,
|
|
X30,
|
|
NZCV,
|
|
SP,
|
|
WSP,
|
|
WZR,
|
|
XZR,
|
|
B0,
|
|
B1,
|
|
B2,
|
|
B3,
|
|
B4,
|
|
B5,
|
|
B6,
|
|
B7,
|
|
B8,
|
|
B9,
|
|
B10,
|
|
B11,
|
|
B12,
|
|
B13,
|
|
B14,
|
|
B15,
|
|
B16,
|
|
B17,
|
|
B18,
|
|
B19,
|
|
B20,
|
|
B21,
|
|
B22,
|
|
B23,
|
|
B24,
|
|
B25,
|
|
B26,
|
|
B27,
|
|
B28,
|
|
B29,
|
|
B30,
|
|
B31,
|
|
D0,
|
|
D1,
|
|
D2,
|
|
D3,
|
|
D4,
|
|
D5,
|
|
D6,
|
|
D7,
|
|
D8,
|
|
D9,
|
|
D10,
|
|
D11,
|
|
D12,
|
|
D13,
|
|
D14,
|
|
D15,
|
|
D16,
|
|
D17,
|
|
D18,
|
|
D19,
|
|
D20,
|
|
D21,
|
|
D22,
|
|
D23,
|
|
D24,
|
|
D25,
|
|
D26,
|
|
D27,
|
|
D28,
|
|
D29,
|
|
D30,
|
|
D31,
|
|
H0,
|
|
H1,
|
|
H2,
|
|
H3,
|
|
H4,
|
|
H5,
|
|
H6,
|
|
H7,
|
|
H8,
|
|
H9,
|
|
H10,
|
|
H11,
|
|
H12,
|
|
H13,
|
|
H14,
|
|
H15,
|
|
H16,
|
|
H17,
|
|
H18,
|
|
H19,
|
|
H20,
|
|
H21,
|
|
H22,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
|
|
X20,
|
|
X21,
|
|
X22,
|
|
X23,
|
|
X24,
|
|
X25,
|
|
X26,
|
|
X27,
|
|
X28,
|
|
|
|
V0,
|
|
V1,
|
|
V2,
|
|
V3,
|
|
V4,
|
|
V5,
|
|
V6,
|
|
V7,
|
|
V8,
|
|
V9,
|
|
V10,
|
|
V11,
|
|
V12,
|
|
V13,
|
|
V14,
|
|
V15,
|
|
V16,
|
|
V17,
|
|
V18,
|
|
V19,
|
|
V20,
|
|
V21,
|
|
V22,
|
|
V23,
|
|
V24,
|
|
V25,
|
|
V26,
|
|
V27,
|
|
V28,
|
|
V29,
|
|
V30,
|
|
V31,
|
|
|
|
// > pseudo registers
|
|
PC, // program counter register
|
|
|
|
CPACR_EL1,
|
|
ESR,
|
|
|
|
// > thread registers
|
|
TPIDR_EL0,
|
|
TPIDRRO_EL0,
|
|
TPIDR_EL1,
|
|
|
|
PSTATE, // PSTATE pseudoregister
|
|
|
|
// > floating point control and status registers
|
|
FPCR,
|
|
FPSR,
|
|
|
|
ENDING, // <-- mark the end of the list of registers
|
|
|
|
// > alias registers
|
|
|
|
IP0 = X16,
|
|
IP1 = X17,
|
|
FP = X29,
|
|
LR = X30,
|
|
}
|
|
}
|