diff --git a/src/targets.rs b/src/targets.rs index d14a760..997c673 100644 --- a/src/targets.rs +++ b/src/targets.rs @@ -31,6 +31,8 @@ pub enum Architecture { Mips64(Mips64Architecture), Msp430, Nvptx64, + Pulley32, + Pulley64, Powerpc, Powerpc64, Powerpc64le, @@ -863,6 +865,8 @@ impl Architecture { | Mips64(Mips64Architecture::Mipsisa64r6el) | Msp430 | Nvptx64 + | Pulley32 + | Pulley64 | Powerpc64le | Riscv32(_) | Riscv64(_) @@ -887,7 +891,6 @@ impl Architecture { #[cfg(feature="arch_zkasm")] ZkAsm => Ok(Endianness::Big), } - } /// Return the pointer bit width of this target's architecture. @@ -911,6 +914,7 @@ impl Architecture { | Wasm32 | M68k | Mips32(_) + | Pulley32 | Powerpc | XTensa => Ok(PointerWidth::U32), AmdGcn @@ -922,6 +926,7 @@ impl Architecture { | X86_64h | Mips64(_) | Nvptx64 + | Pulley64 | Powerpc64 | S390x | Sparc64 @@ -963,6 +968,8 @@ impl Architecture { Mips64(mips64) => mips64.into_str(), Msp430 => Cow::Borrowed("msp430"), Nvptx64 => Cow::Borrowed("nvptx64"), + Pulley32 => Cow::Borrowed("pulley32"), + Pulley64 => Cow::Borrowed("pulley64"), Powerpc => Cow::Borrowed("powerpc"), Powerpc64 => Cow::Borrowed("powerpc64"), Powerpc64le => Cow::Borrowed("powerpc64le"), @@ -1248,6 +1255,8 @@ impl FromStr for Architecture { "m68k" => M68k, "msp430" => Msp430, "nvptx64" => Nvptx64, + "pulley32" => Pulley32, + "pulley64" => Pulley64, "powerpc" => Powerpc, "powerpc64" => Powerpc64, "powerpc64le" => Powerpc64le,