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

Add trace observer/feedback + Rocket and Spike support #38

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

morecoding2
Copy link
Contributor

In this change, we added support for parsing and involving execution traces as an observer and feedback.

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`

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`

binary comparison to literal `Option::None`
if core_observer.cnt() == ref_observer.cnt() {
return Ok(false);
}
return Ok(true);

Check warning

Code scanning / clippy

unneeded `return` statement

unneeded `return` statement
@Bounti
Copy link
Contributor

Bounti commented Jun 30, 2024

Thanks for the contribution! Except the 3 warnings from Clippy it looks all good to me

@Bounti Bounti merged commit d0d015e into IntelLabs:main Jun 30, 2024
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.

2 participants