forked from M-Labs/artiq
coredevice: Reuse Target.little_endian for protocol endianness [nfc]
This commit is contained in:
parent
ec72eeda46
commit
1e443a3aea
@ -76,16 +76,15 @@ class Core:
|
||||
self.ref_multiplier = ref_multiplier
|
||||
if target == "or1k":
|
||||
self.target_cls = OR1KTarget
|
||||
endian = ">"
|
||||
elif target == "cortexa9":
|
||||
self.target_cls = CortexA9Target
|
||||
endian = "<"
|
||||
else:
|
||||
raise ValueError("Unsupported target")
|
||||
self.coarse_ref_period = ref_period*ref_multiplier
|
||||
if host is None:
|
||||
self.comm = CommKernelDummy()
|
||||
else:
|
||||
endian = "<" if self.target_cls.little_endian else ">"
|
||||
self.comm = CommKernel(host, endian)
|
||||
|
||||
self.first_run = True
|
||||
|
Loading…
Reference in New Issue
Block a user