riscv32imc_esp_espidf: set max_atomic_width to 64

This commit is contained in:
Scott Mabin 2022-02-22 10:44:56 +00:00
parent c651ba8a54
commit 65614e91ad

View File

@ -18,11 +18,11 @@ pub fn target() -> Target {
cpu: "generic-rv32".to_string(),
// While the RiscV32IMC architecture does not natively support atomics, ESP-IDF does support
// the __atomic* and __sync* GCC builtins, so setting `max_atomic_width` to `Some(32)`
// the __atomic* and __sync* GCC builtins, so setting `max_atomic_width` to `Some(64)`
// and `atomic_cas` to `true` will cause the compiler to emit libcalls to these builtins.
//
// Support for atomics is necessary for the Rust STD library, which is supported by the ESP-IDF framework.
max_atomic_width: Some(32),
max_atomic_width: Some(64),
atomic_cas: true,
features: "+m,+c".to_string(),