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 = "CortexM";
14    HEADER_FILE = "Emulator/Cores/tlib/arch/arm/cpu_registers.h";
15
16    DEFINES.Add("TARGET_ARM32");
17    DEFINES.Add("TARGET_PROTO_ARM32_M");
18
19    // these registers are already defined in ArmRegisters.cs so we should not generate them again
20    REGISTERS_FROM_BASE_CLASS.Add("SP");
21    REGISTERS_FROM_BASE_CLASS.Add("LR");
22    REGISTERS_FROM_BASE_CLASS.Add("PC");
23    REGISTERS_FROM_BASE_CLASS.Add("CPSR");
24    REGISTERS_FROM_BASE_CLASS.Add("R");
25
26    GENERAL_REGISTERS.AddRange(new[] { "R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", "R8", "R9", "R10", "R11", "R12", "R13", "R14", "R15" });
27#>
28<#@ include file="../Common/RegisterTemplate.tt" #>