Skip to content

Commit

Permalink
bitsets for 64
Browse files Browse the repository at this point in the history
  • Loading branch information
Qazalin committed Oct 15, 2024
1 parent 54ee5d2 commit a6f4c6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ impl<'a> Thread<'a> {
let ret = match op {
1 | 3 => s0,
5 => s0.reverse_bits(),
17 | 19 => {
let sdst: u64 = self.val(sdst as usize);
match op {
17 => sdst & !(1 << (s0 & 0x1f)),
_ => sdst | (1 << (s0 & 0x1f)),
}
}
_ => todo_instr!(instruction)?,
};
self.scalar_reg.write64(sdst as usize, ret);
Expand Down

0 comments on commit a6f4c6f

Please sign in to comment.