Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/unix/bsd/freebsdlike/freebsd/riscv64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ s_no_extra_traits! {
}

pub struct fpregs {
pub fp_x: [[::register_t; 2]; 32],
pub fp_fcsr: ::register_t,
pub fp_x: [[u64; 2]; 32],
pub fp_fcsr: u64,
pub fp_flags: ::c_int,
pub fp_pad: ::c_int,
pub pad: ::c_int,
}

pub struct mcontext_t {
Expand Down Expand Up @@ -85,7 +85,7 @@ cfg_if! {
self.fp_x == other.fp_x
&& self.fp_fcsr == other.fp_fcsr
&& self.fp_flags == other.fp_flags
&& self.fp_pad == other.fp_pad
&& self.pad == other.pad
}
}
impl Eq for fpregs {}
Expand All @@ -95,7 +95,7 @@ cfg_if! {
.field("fp_x", &self.fp_x)
.field("fp_fcsr", &self.fp_fcsr)
.field("fp_flags", &self.fp_flags)
.field("fp_pad", &self.fp_pad)
.field("pad", &self.pad)
.finish()
}
}
Expand All @@ -104,7 +104,7 @@ cfg_if! {
self.fp_x.hash(state);
self.fp_fcsr.hash(state);
self.fp_flags.hash(state);
self.fp_pad.hash(state);
self.pad.hash(state);
}
}
impl PartialEq for mcontext_t {
Expand Down