aboutsummaryrefslogtreecommitdiff
path: root/src/debug/GdbArch.h
blob: 1d45fb0b5a3291e6cf1a0e96bca18ea16ed73629 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef GDBARCH_H_
#define GDBARCH_H_

namespace Gdb
{

using namespace melonDS;
enum class Register : int
{
	r0,
	r1,
	r2,
	r3,
	r4,
	r5,
	r6,
	r7,
	r8,
	r9,
	r10,
	r11,
	r12,
	sp,
	lr,
	pc,

	cpsr,
	sp_usr,
	lr_usr,

	r8_fiq,
	r9_fiq,
	r10_fiq,
	r11_fiq,
	r12_fiq,

	sp_fiq,
	lr_fiq,
	sp_irq,
	lr_irq,
	sp_svc,
	lr_svc,
	sp_abt,
	lr_abt,
	sp_und,
	lr_und,

	spsr_fiq,
	spsr_irq,
	spsr_svc,
	spsr_abt,
	spsr_und,

	COUNT
};

constexpr int GDB_ARCH_N_REG = (int)Register::COUNT;

}

#endif