Skip to content

Commit

Permalink
Merge pull request #31 from Alignof/develop
Browse files Browse the repository at this point in the history
Ver 1.2.0
  • Loading branch information
Alignof authored Oct 14, 2024
2 parents 54d784b + fbb2ecd commit b4cca46
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: softprops/action-gh-release@v1
- uses: actions/checkout@v4
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- run: cargo publish
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raki"
version = "1.1.0"
version = "1.2.0"
edition = "2021"
authors = ["Norimasa Takana <[email protected]>"]
repository = "https://github.com/Alignof/raki"
Expand Down
1 change: 1 addition & 0 deletions src/decode/inst_16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl Decode for u16 {
rs2: new_rs2,
imm: new_imm,
inst_format: new_fmt,
is_compressed: true,
})
}

Expand Down
1 change: 1 addition & 0 deletions src/decode/inst_32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ impl Decode for u32 {
rs2: new_rs2,
imm: new_imm,
inst_format: new_fmt,
is_compressed: false,
})
}

Expand Down
2 changes: 2 additions & 0 deletions src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ pub struct Instruction {
pub imm: Option<i32>,
/// Instruction format
pub inst_format: InstFormat,
/// Is compressed instruction?
pub is_compressed: bool,
}

impl Display for Instruction {
Expand Down
9 changes: 7 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ mod instruction;
pub use crate::decode::{Decode, DecodingError};
pub use crate::instruction::{
a_extension::AOpcode, base_i::BaseIOpcode, c_extension::COpcode, m_extension::MOpcode,
priv_extension::PrivOpcode, zicntr_extension::ZicntrOpcode, zicsr_extension::ZicsrOpcode,
zifencei_extension::ZifenceiOpcode, InstFormat, Instruction, OpcodeKind,
priv_extension::PrivOpcode, zicfiss_extension::ZicfissOpcode, zicntr_extension::ZicntrOpcode,
zicsr_extension::ZicsrOpcode, zifencei_extension::ZifenceiOpcode, InstFormat, Instruction,
OpcodeKind,
};

/// Target isa.
Expand Down Expand Up @@ -101,6 +102,7 @@ mod tests {
rs2: None,
imm: Some(-8),
inst_format: InstFormat::JFormat,
is_compressed: false,
})
);

Expand All @@ -113,6 +115,7 @@ mod tests {
rs2: Some(2),
imm: None,
inst_format: InstFormat::CrFormat,
is_compressed: true,
})
);

Expand All @@ -125,6 +128,7 @@ mod tests {
rs2: Some(2),
imm: None,
inst_format: InstFormat::CrFormat,
is_compressed: true,
})
);

Expand All @@ -151,6 +155,7 @@ mod tests {
rs2: None,
imm: Some(-8),
inst_format: InstFormat::JFormat,
is_compressed: false,
})
);

Expand Down

0 comments on commit b4cca46

Please sign in to comment.