about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorchenx97 <chenx97@aosc.io>2023-06-28 13:35:39 +0800
committerchenx97 <chenx97@aosc.io>2023-07-18 18:58:18 +0800
commitd3727148a0cb2ddf5f3d9c3af7f6caf5bc032e9d (patch)
treea30bd28dc7cc98b31be8c8cff63bbdea94eba09f /src/tools
parenta132b3ec03f3ddab35fdc2d0c3bfbda951956db5 (diff)
downloadrust-d3727148a0cb2ddf5f3d9c3af7f6caf5bc032e9d.tar.gz
rust-d3727148a0cb2ddf5f3d9c3af7f6caf5bc032e9d.zip
support for mips32r6 as a target_arch value
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/miri/src/shims/foreign_items.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/miri/src/shims/foreign_items.rs b/src/tools/miri/src/shims/foreign_items.rs
index 3cf38dc8f7b..72a4adba8d4 100644
--- a/src/tools/miri/src/shims/foreign_items.rs
+++ b/src/tools/miri/src/shims/foreign_items.rs
@@ -45,8 +45,9 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
         // List taken from `library/std/src/sys/common/alloc.rs`.
         // This list should be kept in sync with the one from libstd.
         let min_align = match this.tcx.sess.target.arch.as_ref() {
-            "x86" | "arm" | "mips" | "powerpc" | "powerpc64" | "asmjs" | "wasm32" => 8,
-            "x86_64" | "aarch64" | "mips64" | "mips64r6" | "s390x" | "sparc64" | "loongarch64" => 16,
+            "x86" | "arm" | "mips" | "mips32r6" | "powerpc" | "powerpc64" | "asmjs" | "wasm32" => 8,
+            "x86_64" | "aarch64" | "mips64" | "mips64r6" | "s390x" | "sparc64" | "loongarch64" =>
+                16,
             arch => bug!("unsupported target architecture for malloc: `{}`", arch),
         };
         // Windows always aligns, even small allocations.