Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ examples/mps3-an536-el2/target
examples/mps3-an536-el2/target-d32
examples/versatileab/target
examples/versatileab/target-d32
examples/xilinx-zynq-a9/target
examples/xilinx-zynq-a9/target-d32
Cargo.lock
**/.DS_Store

1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"examples/versatileab/Cargo.toml",
"examples/mps3-an536/Cargo.toml",
"examples/mps3-an536-el2/Cargo.toml",
"examples/xilinx-zynq-a9/Cargo.toml",
]
}
2 changes: 0 additions & 2 deletions aarch32-cpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ keywords = [
]
license = "MIT OR Apache-2.0"
name = "aarch32-cpu"
readme = "README.md"
repository = "https://github.com/rust-embedded/aarch32.git"
homepage = "https://github.com/rust-embedded/aarch32"
rust-version = "1.93"
Expand All @@ -27,7 +26,6 @@ version = "0.4.0"
[dependencies]
arbitrary-int = "2"
bitbybit = "2"
num_enum = { version = "0.7", default-features = false }
critical-section = {version = "1.2.0", features = ["restore-state-u8"], optional = true}
thiserror = { version = "2", default-features = false }
defmt = { version = "1", optional = true }
Expand Down
4 changes: 4 additions & 0 deletions aarch32-cpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#![deny(clippy::unnecessary_safety_comment)]
#![deny(clippy::unnecessary_safety_doc)]

// Only used by the mmu module, but we don't want cargo to complain
// about an unused dependency
use thiserror as _;

pub mod cache;
pub mod interrupt;
pub mod register;
Expand Down
1 change: 0 additions & 1 deletion aarch32-rt-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ description = "Run-Time macros for aarch32-rt"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "aarch32-rt-macros"
readme = "README.md"
repository = "https://github.com/rust-embedded/aarch32.git"
homepage = "https://github.com/rust-embedded/aarch32"
rust-version = "1.93"
Expand Down
1 change: 0 additions & 1 deletion aarch32-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ keywords = [
]
license = "MIT OR Apache-2.0"
name = "aarch32-rt"
readme = "README.md"
repository = "https://github.com/rust-embedded/aarch32.git"
rust-version = "1.93"
version = "0.5.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
Found PERIPHBASE 0xf0000000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
Found PERIPHBASE 0xf0000000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
Found PERIPHBASE 0xf0000000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
Found PERIPHBASE 0xf0000000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
UND @ 0x1005bd80..=0x1005fd7f
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
UND @ 0x1005bd80..=0x1005fd7f
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: qemu-tests/tests/tests.rs
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: aarch32-tests/tests/tests.rs
expression: stdout
---
c_code_char_check(p) -> 2
c_code_unsigned_char_check(p) -> 2
c_code_signed_char_check(p) -> 2
c_code_short_check(p) -> 2
c_code_unsigned_short_check(p) -> 2
c_code_int_check(p) -> 2
c_code_unsigned_int_check(p) -> 2
c_code_long_check(p) -> 2
c_code_unsigned_long_check(p) -> 2
c_code_int_ptr_check(p) -> 2
c_code_float_check(p) -> 2
c_code_double_check(p) -> 2
data_in: c_code_data_t { c: 1, s: 1, i: 1, l: 1, f: 1.0, d: 1.0, e: 1 }
c_code_struct_check(data_in) -> c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
called c_code_struct_ref_check, data_in is c_code_data_t { c: 2, s: 2, i: 2, l: 2, f: 2.0, d: 2.0, e: 2 }
Loading