summaryrefslogtreecommitdiff
path: root/platforms/riscv.yaml
blob: 5764af2d85e995585937318d7219291e82948d4a (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
- match:
    cpu: rv32imac
  
  cflags:
    - -march=rv32imac
    - -mabi=ilp32

- match:
    cpu: rv32ima
  
  cflags:
    - -march=rv32ima
    - -mabi=ilp32

- match:
    cpu: rv32im

  cflags:
    - -march=rv32im
    - -mabi=ilp32

- cflags:
    - -msmall-data-limit=0

  interrupt:
    exception:
      0: InstructionMisaligned
      1: InstructionFault
      2: IllegalInstruction
      3: Breakpoint
      4: LoadMisaligned
      5: LoadFault
      6: StoreMisaligned
      7: StoreFault
      8: ECall_U
      9: ECall_S
      11: ECall_M
      12: InstructionPageFault
      13: LoadPageFault
      15: StorePageFault

    internal:
      0: USI
      1: SSI
      3: MSI
      4: UTI
      5: STI
      7: MTI
      8: UEI
      9: SEI
      11: MEI

  startup:
    - riscv_reset_handler

  toolchains:
    - riscv64-unknown-elf

  define:
    - RISCV