1<#
2//
3// Copyright (c) 2010-2018 Antmicro
4// Copyright (c) 2011-2015 Realtime Embedded
5//
6// This file is licensed under the MIT License.
7// Full license text is available in 'licenses/MIT.txt'.
8//
9#>
10<#@ template language="C#" #>
11<#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
12<#
13    CLASS_NAME = "Sparc";
14    HEADER_FILE = "Emulator/Cores/tlib/arch/sparc/cpu_registers.h";
15
16    DEFINES.Add("TARGET_SPARC");
17
18    AFTER_WRITE_HOOKS.Add("PC", "AfterPCSet");
19
20    GENERAL_REGISTERS.AddRange(new[] { "R0", "R1", "R2", "R3", "R4", "R5" , "R6" , "R7" , "R8" , "R9",
21                                       "R10", "R11", "R12", "R13", "R14", "R15", "R16", "R17", "R18", "R19",
22                                       "R20", "R21", "R22", "R23", "R24", "R25", "R26", "R27", "R28", "R29",
23                                       "R30", "R31",
24
25                                       "ASR16", "ASR17", "ASR18", "ASR19", "ASR20", "ASR21", "ASR22", "ASR23", "ASR24", "ASR25",
26                                       "ASR26", "ASR27", "ASR28", "ASR29", "ASR30", "ASR31",
27
28                                       "PSR", "TBR", "Y", "PC", "NPC", "WIM" });
29#>
30<#@ include file="../Common/RegisterTemplate.tt" #>