Skip to content

Commit 91c1297

Browse files
authored
Merge pull request #4129 from asomers/riscv64gc-unknown-freebsd
Fix the tests on riscv64gc-unknown-freebsd
2 parents 52ccb98 + 730bf73 commit 91c1297

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/unix/bsd/freebsdlike/freebsd/riscv64.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ s_no_extra_traits! {
2121
}
2222

2323
pub struct fpregs {
24-
pub fp_x: [[::register_t; 2]; 32],
25-
pub fp_fcsr: ::register_t,
24+
pub fp_x: [[u64; 2]; 32],
25+
pub fp_fcsr: u64,
2626
pub fp_flags: ::c_int,
27-
pub fp_pad: ::c_int,
27+
pub pad: ::c_int,
2828
}
2929

3030
pub struct mcontext_t {
@@ -85,7 +85,7 @@ cfg_if! {
8585
self.fp_x == other.fp_x
8686
&& self.fp_fcsr == other.fp_fcsr
8787
&& self.fp_flags == other.fp_flags
88-
&& self.fp_pad == other.fp_pad
88+
&& self.pad == other.pad
8989
}
9090
}
9191
impl Eq for fpregs {}
@@ -95,7 +95,7 @@ cfg_if! {
9595
.field("fp_x", &self.fp_x)
9696
.field("fp_fcsr", &self.fp_fcsr)
9797
.field("fp_flags", &self.fp_flags)
98-
.field("fp_pad", &self.fp_pad)
98+
.field("pad", &self.pad)
9999
.finish()
100100
}
101101
}
@@ -104,7 +104,7 @@ cfg_if! {
104104
self.fp_x.hash(state);
105105
self.fp_fcsr.hash(state);
106106
self.fp_flags.hash(state);
107-
self.fp_pad.hash(state);
107+
self.pad.hash(state);
108108
}
109109
}
110110
impl PartialEq for mcontext_t {

0 commit comments

Comments
 (0)