1 # run with --memory-region 0xff000000,4 --memory-region 0xfe000000,00404000
2 ; Exit with return code
15 sethi.p
%hi
(passmsg
),gr9
16 setlo
%lo
(passmsg
),gr9
27 sethi.p
%hi
(failmsg
),gr9
28 setlo
%lo
(failmsg
),gr9
42 movsg hsr0
,gr10 ; enable insn
and data caches
43 sethi.p
0xc800,gr11 ; in copy-back mode
52 sethi.p
%hi
(done1
),gr10
58 write1
: st.p gr11
,@
(sp
,gr11
)
64 sethi.p
%hi
(done2
),gr10
70 read1
: ld @
(sp
,gr11
),gr12
78 ; fill the cache twice
79 sethi.p
%hi
(done3
),gr10
85 write3
: st.p gr11
,@
(sp
,gr11
)
91 sethi.p
%hi
(done4
),gr10
97 read4
: ld @
(sp
,gr11
),gr12
104 ; read it back in reverse
105 sethi.p
%hi
(done5
),gr10
106 setlo
%lo
(done5
),gr10
111 read5
: ld @
(sp
,gr11
),gr12
119 ; access data
and insns in non-cache areas
120 sethi.p
0x8038,gr11 ; bctrlr
0,0
123 sethi.p
0xff00,gr10 ; documented area
135 sethi.p
0xfe00,gr10 ; documented area
140 sethi.p
0xfe40,gr10 ; documented area
146 sethi.p
0x0007,gr10 ; non RAM area
151 sethi.p
0xfe00,gr10 ; insn RAM area
156 sethi.p
0xfe40,gr10 ; data RAM area