annotate python/ppci/target/target_list.py @ 398:c0d9837acde8

x86 target refactor
author Windel Bouwman
date Thu, 29 May 2014 12:13:37 +0200
parents 39bf68bf1891
children
rev   line source
398
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
1
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
2 """
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
3 Contains a list of instantiated targets.
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
4 """
322
44f336460c2a Half of use of burg spec for arm
Windel Bouwman
parents:
diff changeset
5
345
b4882ff0ed06 Added more arm isa tests
Windel Bouwman
parents: 342
diff changeset
6 from .arm import ArmTarget
342
86b02c98a717 Moved target directory
Windel Bouwman
parents: 341
diff changeset
7 from .thumb import ThumbTarget
398
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
8 from .msp430.msp430 import Msp430Target
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
9 from .x86.target_x86 import X86Target
322
44f336460c2a Half of use of burg spec for arm
Windel Bouwman
parents:
diff changeset
10
44f336460c2a Half of use of burg spec for arm
Windel Bouwman
parents:
diff changeset
11 # Instance:
345
b4882ff0ed06 Added more arm isa tests
Windel Bouwman
parents: 342
diff changeset
12 arm_target = ArmTarget()
341
4d204f6f7d4e Rewrite of assembler parts
Windel Bouwman
parents: 322
diff changeset
13 thumb_target = ThumbTarget()
398
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
14 x86target = X86Target()
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
15 msp430target = Msp430Target()
322
44f336460c2a Half of use of burg spec for arm
Windel Bouwman
parents:
diff changeset
16
398
c0d9837acde8 x86 target refactor
Windel Bouwman
parents: 366
diff changeset
17 target_list = [arm_target, thumb_target, x86target, msp430target]
366
39bf68bf1891 Fix sample tests and deterministic build
Windel Bouwman
parents: 345
diff changeset
18 targets = {t.name: t for t in target_list}
39bf68bf1891 Fix sample tests and deterministic build
Windel Bouwman
parents: 345
diff changeset
19 targetnames = list(targets.keys())