+ NR_DEFAULTFLAGS and RS_DEFAULTFLAGS for all CPUs with flags added

git-svn-id: trunk@22181 -
This commit is contained in:
florian 2012-08-22 19:38:27 +00:00
parent fa2da8c299
commit 4dee21c60e
47 changed files with 135 additions and 76 deletions

View File

@ -39,3 +39,6 @@ R29,$01,$1d,r29,29,29
R30,$01,$1e,r30,30,30
R31,$01,$1f,r31,31,31
SREG,$05,$00,sreg,0,0

View File

@ -262,6 +262,9 @@ unit cpubase;
{ Offset where the parent framepointer is pushed }
PARENT_FRAMEPOINTER_OFFSET = 0;
NR_DEFAULTFLAGS = NR_SREG;
RS_DEFAULTFLAGS = RS_SREG;
{*****************************************************************************
GCC /ABI linking information
*****************************************************************************}

View File

@ -32,3 +32,4 @@ NR_R28 = tregister($0100001c);
NR_R29 = tregister($0100001d);
NR_R30 = tregister($0100001e);
NR_R31 = tregister($0100001f);
NR_SREG = tregister($05000000);

View File

@ -31,4 +31,5 @@
28,
29,
30,
31
31,
0

View File

@ -1,2 +1,2 @@
{ don't edit, this file is generated from avrreg.dat }
33
34

View File

@ -31,4 +31,5 @@ tregister($0100001b),
tregister($0100001c),
tregister($0100001d),
tregister($0100001e),
tregister($0100001f)
tregister($0100001f),
tregister($05000000)

View File

@ -31,4 +31,5 @@
29,
30,
31,
32
32,
33

View File

@ -31,4 +31,5 @@
7,
8,
9,
10
10,
33

View File

@ -31,4 +31,5 @@
28,
29,
30,
31
31,
0

View File

@ -31,4 +31,5 @@
'r28',
'r29',
'r30',
'r31'
'r31',
'sreg'

View File

@ -32,3 +32,4 @@ RS_R28 = $1c;
RS_R29 = $1d;
RS_R30 = $1e;
RS_R31 = $1f;
RS_SREG = $00;

View File

@ -8,21 +8,21 @@
15,
6,
5,
38,
39,
40,
41,
42,
26,
7,
10,
19,
9,
32,
33,
34,
35,
36,
37,
38,
27,
11,
4,
@ -35,9 +35,9 @@
28,
18,
24,
32,
30,
31,
56,
57,
58,
59,
@ -45,11 +45,11 @@
61,
62,
63,
64,
17,
23,
29,
55,
47,
56,
48,
49,
50,
@ -57,12 +57,12 @@
52,
53,
54,
42,
55,
43,
44,
45,
46,
64,
47,
65,
66,
67,
@ -70,4 +70,5 @@
69,
70,
71,
72,
0

View File

@ -31,6 +31,7 @@
'%ss',
'%fs',
'%gs',
'%flags',
'%dr0',
'%dr1',
'%dr2',

View File

@ -31,6 +31,7 @@ NR_ES = tregister($05000003);
NR_SS = tregister($05000004);
NR_FS = tregister($05000005);
NR_GS = tregister($05000006);
NR_FLAGS = tregister($05000007);
NR_DR0 = tregister($05000007);
NR_DR1 = tregister($05000008);
NR_DR2 = tregister($05000009);

View File

@ -46,6 +46,7 @@
-1,
-1,
-1,
-1,
11,
12,
13,

View File

@ -31,6 +31,7 @@
'ss',
'fs',
'gs',
'flags',
'dr0',
'dr1',
'dr2',

View File

@ -9,21 +9,21 @@
15,
6,
5,
38,
39,
40,
41,
42,
26,
7,
10,
19,
9,
32,
33,
34,
35,
36,
37,
38,
27,
11,
4,
@ -36,9 +36,9 @@
28,
18,
24,
32,
30,
31,
56,
57,
58,
59,
@ -46,11 +46,11 @@
61,
62,
63,
64,
17,
23,
29,
55,
47,
56,
48,
49,
50,
@ -58,16 +58,17 @@
52,
53,
54,
42,
55,
43,
44,
45,
46,
64,
47,
65,
66,
67,
68,
69,
70,
71
71,
72

View File

@ -31,6 +31,7 @@
'ss',
'fs',
'gs',
'flags',
'dr0',
'dr1',
'dr2',

View File

@ -1,2 +1,2 @@
{ don't edit, this file is generated from x86reg.dat }
72
73

View File

@ -9,21 +9,21 @@
15,
6,
5,
38,
39,
40,
41,
42,
26,
7,
10,
19,
9,
32,
33,
34,
35,
36,
37,
38,
27,
11,
4,
@ -36,9 +36,9 @@
28,
18,
24,
32,
30,
31,
56,
57,
58,
59,
@ -46,11 +46,11 @@
61,
62,
63,
64,
17,
23,
29,
55,
47,
56,
48,
49,
50,
@ -58,16 +58,17 @@
52,
53,
54,
42,
55,
43,
44,
45,
46,
64,
47,
65,
66,
67,
68,
69,
70,
71
71,
72

View File

@ -32,6 +32,7 @@ tregister($05000004),
tregister($05000005),
tregister($05000006),
tregister($05000007),
tregister($05000007),
tregister($05000008),
tregister($05000009),
tregister($0500000a),

View File

@ -32,6 +32,7 @@
4,
5,
0,
0,
1,
2,
3,

View File

@ -31,6 +31,7 @@ OT_REG_DESS,
OT_REG_DESS,
OT_REG_FSGS,
OT_REG_FSGS,
OT_NONE,
OT_REG_DREG,
OT_REG_DREG,
OT_REG_DREG,

View File

@ -24,7 +24,6 @@
20,
22,
24,
47,
48,
49,
50,
@ -49,6 +48,7 @@
69,
70,
71,
72,
25,
26,
27,
@ -56,8 +56,8 @@
29,
30,
31,
32,
33,
32,
34,
35,
36,
@ -70,4 +70,5 @@
43,
44,
45,
46
46,
47

View File

@ -9,21 +9,21 @@
15,
6,
5,
38,
39,
40,
41,
42,
26,
7,
10,
19,
9,
32,
33,
34,
35,
36,
37,
38,
27,
11,
4,
@ -36,9 +36,9 @@
28,
18,
24,
32,
30,
31,
56,
57,
58,
59,
@ -46,11 +46,11 @@
61,
62,
63,
64,
17,
23,
29,
55,
47,
56,
48,
49,
50,
@ -58,16 +58,17 @@
52,
53,
54,
42,
55,
43,
44,
45,
46,
64,
47,
65,
66,
67,
68,
69,
70,
71
71,
72

View File

@ -46,6 +46,7 @@
-1,
-1,
-1,
-1,
12,
13,
14,

View File

@ -31,6 +31,7 @@
'ss',
'fs',
'gs',
'flags',
'dr0',
'dr1',
'dr2',

View File

@ -289,6 +289,9 @@ unit cpubase;
{# Floating point results will be placed into this register }
NR_FPU_RESULT_REG = NR_FP0;
NR_DEFAULTFLAGS = NR_SR;
RS_DEFAULTFLAGS = RS_SR;
{*****************************************************************************
GCC /ABI linking information
*****************************************************************************}

View File

@ -333,6 +333,9 @@ uses
NR_FPU_RESULT_REG = NR_F1;
NR_MM_RESULT_REG = NR_M0;
NR_DEFAULTFLAGS = NR_CR;
RS_DEFAULTFLAGS = RS_CR;
{*****************************************************************************
GCC /ABI linking information

View File

@ -332,6 +332,9 @@ const
NR_FPU_RESULT_REG = NR_F1;
NR_MM_RESULT_REG = NR_M0;
NR_DEFAULTFLAGS = NR_CR;
RS_DEFAULTFLAGS = RS_CR;
{*****************************************************************************
GCC /ABI linking information
*****************************************************************************}

View File

@ -237,6 +237,8 @@ uses
PARENT_FRAMEPOINTER_OFFSET = 68; { o0 }
NR_DEFAULTFLAGS = NR_PSR;
RS_DEFAULTFLAGS = RS_PSR;
{*****************************************************************************
GCC /ABI linking information

View File

@ -126,6 +126,8 @@ uses
RS_XMM14 = $0e;
RS_XMM15 = $0f;
RS_FLAGS = $07;
{ Number of first imaginary register }
{$ifdef x86_64}
first_mm_imreg = $10;
@ -187,6 +189,9 @@ uses
{$endif x86_64}
);
RS_DEFAULTFLAGS = RS_FLAGS;
NR_DEFAULTFLAGS = NR_FLAGS;
type
totherregisterset = set of tregisterindex;

View File

@ -85,6 +85,7 @@ NR_ES,$05000003,es,%es,es,es,-1,-1,-1,OT_REG_DESS,0
NR_SS,$05000004,ss,%ss,ss,ss,-1,-1,-1,OT_REG_DESS,2
NR_FS,$05000005,fs,%fs,fs,fs,-1,-1,-1,OT_REG_FSGS,4
NR_GS,$05000006,gs,%gs,gs,gs,-1,-1,-1,OT_REG_FSGS,5
NR_FLAGS,$05000007,flags,%flags,flags,flags,-1,-1,-1,OT_NONE,0
NR_DR0,$05000007,dr0,%dr0,dr0,dr0,-1,-1,-1,OT_REG_DREG,0
NR_DR1,$05000008,dr1,%dr1,dr1,dr1,-1,-1,-1,OT_REG_DREG,1

View File

@ -9,22 +9,22 @@
18,
7,
6,
83,
84,
85,
86,
87,
71,
8,
12,
26,
25,
11,
77,
78,
79,
80,
81,
82,
83,
72,
13,
4,
@ -37,9 +37,9 @@
73,
23,
35,
77,
75,
76,
101,
102,
103,
104,
@ -47,6 +47,7 @@
106,
107,
108,
109,
45,
46,
48,
@ -93,8 +94,7 @@
34,
33,
74,
100,
92,
101,
93,
94,
95,
@ -102,20 +102,20 @@
97,
98,
99,
87,
100,
88,
89,
90,
91,
109,
92,
110,
119,
111,
120,
121,
122,
123,
124,
111,
125,
112,
113,
114,
@ -123,4 +123,5 @@
116,
117,
118,
119,
0

View File

@ -76,6 +76,7 @@
'%ss',
'%fs',
'%gs',
'%flags',
'%dr0',
'%dr1',
'%dr2',

View File

@ -76,6 +76,7 @@ NR_ES = tregister($05000003);
NR_SS = tregister($05000004);
NR_FS = tregister($05000005);
NR_GS = tregister($05000006);
NR_FLAGS = tregister($05000007);
NR_DR0 = tregister($05000007);
NR_DR1 = tregister($05000008);
NR_DR2 = tregister($05000009);

View File

@ -91,6 +91,7 @@
-1,
-1,
-1,
-1,
33,
34,
35,

View File

@ -76,6 +76,7 @@
'ss',
'fs',
'gs',
'flags',
'dr0',
'dr1',
'dr2',

View File

@ -10,22 +10,22 @@
18,
7,
6,
83,
84,
85,
86,
87,
71,
8,
12,
26,
25,
11,
77,
78,
79,
80,
81,
82,
83,
72,
13,
4,
@ -38,9 +38,9 @@
73,
23,
35,
77,
75,
76,
101,
102,
103,
104,
@ -48,6 +48,7 @@
106,
107,
108,
109,
45,
46,
48,
@ -94,8 +95,7 @@
34,
33,
74,
100,
92,
101,
93,
94,
95,
@ -103,24 +103,25 @@
97,
98,
99,
87,
100,
88,
89,
90,
91,
109,
92,
110,
119,
111,
120,
121,
122,
123,
124,
111,
125,
112,
113,
114,
115,
116,
117,
118
118,
119

View File

@ -1,2 +1,2 @@
{ don't edit, this file is generated from x86reg.dat }
125
126

View File

@ -77,6 +77,7 @@ tregister($05000004),
tregister($05000005),
tregister($05000006),
tregister($05000007),
tregister($05000007),
tregister($05000008),
tregister($05000009),
tregister($0500000a),

View File

@ -77,6 +77,7 @@
4,
5,
0,
0,
1,
2,
3,

View File

@ -76,6 +76,7 @@ OT_REG_DESS,
OT_REG_DESS,
OT_REG_FSGS,
OT_REG_FSGS,
OT_NONE,
OT_REG_DREG,
OT_REG_DREG,
OT_REG_DREG,

View File

@ -68,7 +68,6 @@
57,
61,
65,
92,
93,
94,
95,
@ -101,16 +100,17 @@
122,
123,
124,
69,
125,
70,
69,
71,
72,
73,
74,
75,
76,
77,
78,
77,
79,
80,
81,
@ -123,4 +123,5 @@
88,
89,
90,
91
91,
92

View File

@ -10,22 +10,22 @@
18,
7,
6,
83,
84,
85,
86,
87,
71,
8,
12,
26,
25,
11,
77,
78,
79,
80,
81,
82,
83,
72,
13,
4,
@ -38,9 +38,9 @@
73,
23,
35,
77,
75,
76,
101,
102,
103,
104,
@ -48,6 +48,7 @@
106,
107,
108,
109,
45,
46,
48,
@ -94,8 +95,7 @@
34,
33,
74,
100,
92,
101,
93,
94,
95,
@ -103,24 +103,25 @@
97,
98,
99,
87,
100,
88,
89,
90,
91,
109,
92,
110,
119,
111,
120,
121,
122,
123,
124,
111,
125,
112,
113,
114,
115,
116,
117,
118
118,
119

View File

@ -91,6 +91,7 @@
-1,
-1,
-1,
-1,
33,
34,
35,

View File

@ -76,6 +76,7 @@
'ss',
'fs',
'gs',
'flags',
'dr0',
'dr1',
'dr2',