Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] processorfuzz #42

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

[WIP] processorfuzz #42

wants to merge 11 commits into from

Conversation

Bounti
Copy link
Contributor

@Bounti Bounti commented Jul 1, 2024

No description provided.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clippy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

scounteren: u32,
}

impl Comb {

Check warning

Code scanning / clippy

associated function new is never used Warning

associated function new is never used
}

impl Comb {
fn new(mstatus: u32, frm: u32, fflags: u32, mcause: u32, scause: u32, medeleg: u32, mcounteren: u32, scounteren: u32) -> Self {

Check warning

Code scanning / clippy

this function has too many arguments (8/7) Warning

this function has too many arguments (8/7)
}

impl Comb {
fn new(mstatus: u32, frm: u32, fflags: u32, mcause: u32, scause: u32, medeleg: u32, mcounteren: u32, scounteren: u32) -> Self {

Check warning

Code scanning / clippy

associated function new is never used Warning

associated function new is never used

// search for new transitions considering all available CSR, requires Spike specific
// compilation flag
if self.all_csr.is_some() && self.all_csr.unwrap() == true {

Check warning

Code scanning / clippy

equality checks against true are unnecessary Warning

equality checks against true are unnecessary
let instr_t = trace_line.inst;

if !self.comb_priv.contains(&(instr_t, comb_pr_p, comb_pr).clone()) && comb_pr_p != comb_pr {
self.comb_priv.push((instr_t, comb_pr_p, comb_pr).clone());

Check warning

Code scanning / clippy

using clone on type (u64, CombPr, CombPr) which implements the Copy trait Warning

using clone on type (u64, CombPr, CombPr) which implements the Copy trait
pub fn new(pc: u64, inst: u64, ops: Vec<OpLog>, csr: Option<CSRLog>) -> Self {
Self{
pc:pc,
inst:inst,

Check warning

Code scanning / clippy

redundant field names in struct initialization Warning

redundant field names in struct initialization
Self{
pc:pc,
inst:inst,
ops:ops,

Check warning

Code scanning / clippy

redundant field names in struct initialization Warning

redundant field names in struct initialization
pc:pc,
inst:inst,
ops:ops,
csr:csr,

Check warning

Code scanning / clippy

redundant field names in struct initialization Warning

redundant field names in struct initialization
OpLog::RegOp(RegOp{op_type: OpType::Read, name: caps[3].to_string(), value: u64::from_str_radix(&caps[4], 16).unwrap()})
];

if caps.get(5) != None && &caps[6] == "mem" {

Check warning

Code scanning / clippy

binary comparison to literal Option::None Warning

binary comparison to literal Option::None

if caps.get(5) != None && &caps[6] == "mem" {
ops.push(OpLog::MemOp(MemOp{op_type: OpType::Read, address: u64::from_str_radix(&caps[7], 16).unwrap(), value: u64::from_str_radix(&caps[4], 16).unwrap()}));
} else if caps.get(5) != None {

Check warning

Code scanning / clippy

binary comparison to literal Option::None Warning

binary comparison to literal Option::None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant