hw/omap1.c: Add fallthrough markers and breaks
[qemu/pbrook.git] / tests / tcg / lm32 / crt.S
blob5f9cfd95d3c802d591858ef3c105898ec50a5ddc
1 .text
2 .global _start
4 _start:
5 _reset_handler:
6         xor r0, r0, r0
7         mvhi r1, hi(_start)
8         ori r1, r1, lo(_start)
9         wcsr eba, r1
10         wcsr deba, r1
11         bi _main
12         nop
13         nop
15 _breakpoint_handler:
16         ori r25, r25, 1
17         addi ra, ba, 4
18         ret
19         nop
20         nop
21         nop
22         nop
23         nop
25 _instruction_bus_error_handler:
26         ori r25, r25, 2
27         addi ra, ea, 4
28         ret
29         nop
30         nop
31         nop
32         nop
33         nop
35 _watchpoint_handler:
36         ori r25, r25, 4
37         addi ra, ba, 4
38         ret
39         nop
40         nop
41         nop
42         nop
43         nop
45 _data_bus_error_handler:
46         ori r25, r25, 8
47         addi ra, ea, 4
48         ret
49         nop
50         nop
51         nop
52         nop
53         nop
55 _divide_by_zero_handler:
56         ori r25, r25, 16
57         addi ra, ea, 4
58         ret
59         nop
60         nop
61         nop
62         nop
63         nop
65 _interrupt_handler:
66         ori r25, r25, 32
67         addi ra, ea, 4
68         ret
69         nop
70         nop
71         nop
72         nop
73         nop
75 _system_call_handler:
76         ori r25, r25, 64
77         addi ra, ea, 4
78         ret
79         nop
80         nop
81         nop
82         nop
83         nop