Last change
on this file since 131 was
111,
checked in by rosiere, 16 years ago
|
1) Decod_queue : multi implementation (one_fifo, multi_fifo)
2) Issue_queue : multi implementation (in_order, out_of_order)
3) Direction : Add Meta predictor
4) Context_State : re add Branch_complete, More priority to Load miss (is not speculative)
5) Return_Address_Stack : update reg_PREDICT pointer on decod miss prediction
6) UPT : Fix bug in multi event
7) Prediction_glue : in read_stack case, insert in UPT pc_next
8) Rename select : when rob have an event (need flush), read_r{a,b,c} and write_r{d,e} is set at 0
|
-
Property svn:keywords set to
Id
|
File size:
1.5 KB
|
Line | |
---|
1 | /* |
---|
2 | * Test_025 |
---|
3 | * |
---|
4 | * end_ko : infinite_loop |
---|
5 | * end_ok : Write in R1 the stop address and stop an data |
---|
6 | * The store in the destination of an jump |
---|
7 | * start : Test l.jr (return procedure) |
---|
8 | */ |
---|
9 | |
---|
10 | .file "crt0.s" |
---|
11 | /* |
---|
12 | .section .vector |
---|
13 | */ |
---|
14 | .section .text |
---|
15 | .align 4 |
---|
16 | |
---|
17 | /* ---[ 0x0 : Print a error ]------------------------------------------- */ |
---|
18 | |
---|
19 | .org 0x0 |
---|
20 | _end_ko : |
---|
21 | l.movhi r1, hi(_tty) |
---|
22 | l.ori r1, r1, lo(_tty) |
---|
23 | l.sw 4(r1), r1 /* stop address */ |
---|
24 | _infinite_loop : |
---|
25 | l.j _infinite_loop |
---|
26 | l.nop |
---|
27 | |
---|
28 | _end_ok : |
---|
29 | l.movhi r1, hi(_tty) |
---|
30 | l.ori r1, r1, lo(_tty) |
---|
31 | l.sw 4(r1), r0 /* stop address */ |
---|
32 | |
---|
33 | |
---|
34 | /* ---[ 0x100: RESET exception ]----------------------------------------- */ |
---|
35 | .org 0x100 |
---|
36 | .global _start |
---|
37 | _start: |
---|
38 | l.and r1, r0, r0 /* counter 1 */ |
---|
39 | l.ori r2, r0, 100 /* limit */ |
---|
40 | |
---|
41 | l.and r11, r0, r0 |
---|
42 | _loop_inc : |
---|
43 | l.or r3, r11, r11 |
---|
44 | l.jal _func_inc |
---|
45 | l.nop |
---|
46 | l.sfeq r11, r2 |
---|
47 | l.bnf _loop_inc |
---|
48 | l.nop |
---|
49 | |
---|
50 | l.movhi r4, hi(_func_dec) |
---|
51 | l.ori r4, r4, lo(_func_dec) |
---|
52 | _loop_dec : |
---|
53 | l.or r3, r11, r11 |
---|
54 | l.jalr r4 |
---|
55 | l.nop |
---|
56 | l.sfeq r11, r0 |
---|
57 | l.bnf _loop_dec |
---|
58 | l.nop |
---|
59 | |
---|
60 | l.j _end_ok |
---|
61 | l.nop |
---|
62 | |
---|
63 | .org 0x200 |
---|
64 | _func_inc : |
---|
65 | l.jr r9 |
---|
66 | l.addi r11, r3, 1 |
---|
67 | l.j _end_ko |
---|
68 | l.nop |
---|
69 | |
---|
70 | .org 0x240 |
---|
71 | _func_dec : |
---|
72 | l.jr r9 |
---|
73 | l.addi r11, r3, -1 |
---|
74 | l.j _end_ko |
---|
75 | l.nop |
---|
76 | |
---|
Note: See
TracBrowser
for help on using the repository browser.