This commit is contained in:
angie 2024-01-28 12:29:44 -03:00
parent e8c9217a82
commit 534f58cc7c
2 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,9 @@ jobs:
run: rustup component add clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: |
cargo clippy --version
cargo clippy --all-targets --all-features -- -D warnings
- name: Build Rust package
run: cargo build --release --workspace

View File

@ -458,14 +458,14 @@ impl Instruction {
utils::shiftr(self.flags, 0, 2).try_into().unwrap()
}
pub fn flags_set_r5900_disasm_as_data(&mut self, value: utils::TrinaryValue) {
self.flags = utils::bitrepack(self.flags, value.try_into().unwrap(), 0, 2);
self.flags = utils::bitrepack(self.flags, value.into(), 0, 2);
}
pub fn flags_get_r5900_use_dollar(&self) -> utils::TrinaryValue {
utils::shiftr(self.flags, 2, 2).try_into().unwrap()
}
pub fn flags_set_r5900_use_dollar(&mut self, value: utils::TrinaryValue) {
self.flags = utils::bitrepack(self.flags, value.try_into().unwrap(), 2, 2);
self.flags = utils::bitrepack(self.flags, value.into(), 2, 2);
}
pub fn instr_id_type_name(&self) -> &'static str {