forked from M-Labs/artiq
Update LLVM to 6.0.0 and Rust to 1.25.0.
This commit is contained in:
parent
9589decd54
commit
9c6978be84
@ -2,4 +2,5 @@
|
|||||||
members = ["runtime", "ksupport", "satman"]
|
members = ["runtime", "ksupport", "satman"]
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
debug = 1 # either 0 or 2 cause an LLVM ICE
|
incremental = false # incompatible with LTO
|
||||||
|
debug = 2
|
||||||
|
@ -229,15 +229,12 @@ const DMA_BUFFER_SIZE: usize = 64 * 1024;
|
|||||||
|
|
||||||
struct DmaRecorder {
|
struct DmaRecorder {
|
||||||
active: bool,
|
active: bool,
|
||||||
#[allow(dead_code)]
|
|
||||||
padding: [u8; 3], //https://github.com/rust-lang/rust/issues/41315
|
|
||||||
data_len: usize,
|
data_len: usize,
|
||||||
buffer: [u8; DMA_BUFFER_SIZE],
|
buffer: [u8; DMA_BUFFER_SIZE],
|
||||||
}
|
}
|
||||||
|
|
||||||
static mut DMA_RECORDER: DmaRecorder = DmaRecorder {
|
static mut DMA_RECORDER: DmaRecorder = DmaRecorder {
|
||||||
active: false,
|
active: false,
|
||||||
padding: [0; 3],
|
|
||||||
data_len: 0,
|
data_len: 0,
|
||||||
buffer: [0; DMA_BUFFER_SIZE],
|
buffer: [0; DMA_BUFFER_SIZE],
|
||||||
};
|
};
|
||||||
|
@ -5,18 +5,13 @@ use analyzer_proto::*;
|
|||||||
|
|
||||||
const BUFFER_SIZE: usize = 512 * 1024;
|
const BUFFER_SIZE: usize = 512 * 1024;
|
||||||
|
|
||||||
// hack until https://github.com/rust-lang/rust/issues/33626 is fixed
|
#[repr(align(64))]
|
||||||
#[repr(simd)]
|
|
||||||
struct Align64(u64, u64, u64, u64, u64, u64, u64, u64);
|
|
||||||
|
|
||||||
struct Buffer {
|
struct Buffer {
|
||||||
data: [u8; BUFFER_SIZE],
|
data: [u8; BUFFER_SIZE]
|
||||||
__alignment: [Align64; 0]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static mut BUFFER: Buffer = Buffer {
|
static mut BUFFER: Buffer = Buffer {
|
||||||
data: [0; BUFFER_SIZE],
|
data: [0; BUFFER_SIZE]
|
||||||
__alignment: []
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fn arm() {
|
fn arm() {
|
||||||
@ -68,9 +63,6 @@ fn worker(stream: &mut TcpStream) -> io::Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn thread(io: Io) {
|
pub fn thread(io: Io) {
|
||||||
// verify that the hack above works
|
|
||||||
assert!(::core::mem::align_of::<Buffer>() == 64);
|
|
||||||
|
|
||||||
let listener = TcpListener::new(&io, 65535);
|
let listener = TcpListener::new(&io, 65535);
|
||||||
listener.listen(1382).expect("analyzer: cannot listen");
|
listener.listen(1382).expect("analyzer: cannot listen");
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
#![feature(compiler_builtins_lib, alloc, repr_simd, lang_items, const_fn, global_allocator)]
|
#![feature(compiler_builtins_lib, lang_items, alloc, global_allocator)]
|
||||||
|
|
||||||
extern crate compiler_builtins;
|
extern crate compiler_builtins;
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
@ -18,9 +18,9 @@ requirements:
|
|||||||
- misoc 0.11 py35_0+git3388e6ba
|
- misoc 0.11 py35_0+git3388e6ba
|
||||||
- jesd204b 0.3
|
- jesd204b 0.3
|
||||||
- binutils-or1k-linux >=2.27
|
- binutils-or1k-linux >=2.27
|
||||||
- llvm-or1k 4.0.1
|
- llvm-or1k 6.0.0
|
||||||
- llvmlite-artiq 0.20.0
|
- llvmlite-artiq 0.23.0.dev py35_2
|
||||||
- rust-core-or1k 1.23.0 19
|
- rust-core-or1k 1.25.0 20
|
||||||
- openocd 0.10.0 1
|
- openocd 0.10.0 1
|
||||||
- lit
|
- lit
|
||||||
- outputcheck
|
- outputcheck
|
||||||
|
@ -26,7 +26,7 @@ requirements:
|
|||||||
- setuptools 33.1.1
|
- setuptools 33.1.1
|
||||||
run:
|
run:
|
||||||
- python >=3.5.3,<3.6
|
- python >=3.5.3,<3.6
|
||||||
- llvmlite-artiq 0.20.0
|
- llvmlite-artiq 0.23.0.dev py35_2
|
||||||
- binutils-or1k-linux >=2.27
|
- binutils-or1k-linux >=2.27
|
||||||
- pythonparser >=1.1
|
- pythonparser >=1.1
|
||||||
- openocd 0.10.0 1
|
- openocd 0.10.0 1
|
||||||
|
Loading…
Reference in New Issue
Block a user