Skip to content

Commit fd76268

Browse files
committed
library/panic_unwind: Consolidate RV32 and RV64
Signed-off-by: Alistair Francis <[email protected]>
1 parent 3e94295 commit fd76268

File tree

1 file changed

+1
-4
lines changed
  • library/panic_unwind/src

1 file changed

+1
-4
lines changed

library/panic_unwind/src/gcc.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ const UNWIND_DATA_REG: (i32, i32) = (24, 25); // I0, I1
120120
#[cfg(target_arch = "hexagon")]
121121
const UNWIND_DATA_REG: (i32, i32) = (0, 1); // R0, R1
122122

123-
#[cfg(target_arch = "riscv64")]
124-
const UNWIND_DATA_REG: (i32, i32) = (10, 11); // x10, x11
125-
126-
#[cfg(target_arch = "riscv32")]
123+
#[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
127124
const UNWIND_DATA_REG: (i32, i32) = (10, 11); // x10, x11
128125

129126
// The following code is based on GCC's C and C++ personality routines. For reference, see:

0 commit comments

Comments
 (0)