Skip to content

Commit

Permalink
Update LLVM to 6.0.0 and Rust to 1.25.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 6, 2018
1 parent 9589dec commit 9c6978b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 20 deletions.
3 changes: 2 additions & 1 deletion artiq/firmware/Cargo.toml
Expand Up @@ -2,4 +2,5 @@
members = ["runtime", "ksupport", "satman"]

[profile.dev]
debug = 1 # either 0 or 2 cause an LLVM ICE
incremental = false # incompatible with LTO
debug = 2
3 changes: 0 additions & 3 deletions artiq/firmware/ksupport/lib.rs
Expand Up @@ -229,15 +229,12 @@ const DMA_BUFFER_SIZE: usize = 64 * 1024;

struct DmaRecorder {
active: bool,
#[allow(dead_code)]
padding: [u8; 3], //https://github.com/rust-lang/rust/issues/41315
data_len: usize,
buffer: [u8; DMA_BUFFER_SIZE],
}

static mut DMA_RECORDER: DmaRecorder = DmaRecorder {
active: false,
padding: [0; 3],
data_len: 0,
buffer: [0; DMA_BUFFER_SIZE],
};
Expand Down
14 changes: 3 additions & 11 deletions artiq/firmware/runtime/analyzer.rs
Expand Up @@ -5,18 +5,13 @@ use analyzer_proto::*;

const BUFFER_SIZE: usize = 512 * 1024;

// hack until https://github.com/rust-lang/rust/issues/33626 is fixed
#[repr(simd)]
struct Align64(u64, u64, u64, u64, u64, u64, u64, u64);

#[repr(align(64))]
struct Buffer {
data: [u8; BUFFER_SIZE],
__alignment: [Align64; 0]
data: [u8; BUFFER_SIZE]
}

static mut BUFFER: Buffer = Buffer {
data: [0; BUFFER_SIZE],
__alignment: []
data: [0; BUFFER_SIZE]
};

fn arm() {
Expand Down Expand Up @@ -68,9 +63,6 @@ fn worker(stream: &mut TcpStream) -> io::Result<()> {
}

pub fn thread(io: Io) {
// verify that the hack above works
assert!(::core::mem::align_of::<Buffer>() == 64);

let listener = TcpListener::new(&io, 65535);
listener.listen(1382).expect("analyzer: cannot listen");

Expand Down
2 changes: 1 addition & 1 deletion artiq/firmware/runtime/lib.rs
@@ -1,5 +1,5 @@
#![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 alloc;
Expand Down
6 changes: 3 additions & 3 deletions conda/artiq-dev/meta.yaml
Expand Up @@ -18,9 +18,9 @@ requirements:
- misoc 0.11 py35_0+git3388e6ba
- jesd204b 0.3
- binutils-or1k-linux >=2.27
- llvm-or1k 4.0.1
- llvmlite-artiq 0.20.0
- rust-core-or1k 1.23.0 19
- llvm-or1k 6.0.0
- llvmlite-artiq 0.23.0.dev py35_2
- rust-core-or1k 1.25.0 20
- openocd 0.10.0 1
- lit
- outputcheck
Expand Down
2 changes: 1 addition & 1 deletion conda/artiq/meta.yaml
Expand Up @@ -26,7 +26,7 @@ requirements:
- setuptools 33.1.1
run:
- python >=3.5.3,<3.6
- llvmlite-artiq 0.20.0
- llvmlite-artiq 0.23.0.dev py35_2
- binutils-or1k-linux >=2.27
- pythonparser >=1.1
- openocd 0.10.0 1
Expand Down

0 comments on commit 9c6978b

Please sign in to comment.