diff options
| author | chenx97 <chenx97@aosc.io> | 2023-06-02 11:18:26 +0800 |
|---|---|---|
| committer | chenx97 <chenx97@aosc.io> | 2023-07-18 18:58:18 +0800 |
| commit | c6e03cd9516cccb95257e224af49d704cf493e04 (patch) | |
| tree | a5c9d2f2348b68741442b4cd478a206b0029811e /library/std/src/sys | |
| parent | c44324a4fe8e96f9d6473255df6c3a481caca76f (diff) | |
| download | rust-c6e03cd9516cccb95257e224af49d704cf493e04.tar.gz rust-c6e03cd9516cccb95257e224af49d704cf493e04.zip | |
support for mips64r6 as a target_arch value
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/common/alloc.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys/personality/gcc.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/common/alloc.rs b/library/std/src/sys/common/alloc.rs index a5fcbdf39c6..c2e8c2e7538 100644 --- a/library/std/src/sys/common/alloc.rs +++ b/library/std/src/sys/common/alloc.rs @@ -24,6 +24,7 @@ pub const MIN_ALIGN: usize = 8; target_arch = "aarch64", target_arch = "loongarch64", target_arch = "mips64", + target_arch = "mips64r6", target_arch = "s390x", target_arch = "sparc64", target_arch = "riscv64", diff --git a/library/std/src/sys/personality/gcc.rs b/library/std/src/sys/personality/gcc.rs index 6552d96ca69..1d35e765793 100644 --- a/library/std/src/sys/personality/gcc.rs +++ b/library/std/src/sys/personality/gcc.rs @@ -59,7 +59,7 @@ const UNWIND_DATA_REG: (i32, i32) = (0, 1); // R0, R1 / X0, X1 #[cfg(target_arch = "m68k")] const UNWIND_DATA_REG: (i32, i32) = (0, 1); // D0, D1 -#[cfg(any(target_arch = "mips", target_arch = "mips64"))] +#[cfg(any(target_arch = "mips", target_arch = "mips64", target_arch = "mips64r6"))] const UNWIND_DATA_REG: (i32, i32) = (4, 5); // A0, A1 #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] |
