-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bump probe-rs to v0.13.0 #37
base: rivos/main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this on actual board? I think we should also verify arm still works. I also kind of feel like we should squash these first 3 commits, as they are just changes to work with the updated interface. I think it will not build unless you use the last commit, right?
@@ -146,7 +144,7 @@ impl Core for ProbeCore { | |||
use num_traits::ToPrimitive; | |||
|
|||
core.write_core_reg( | |||
Into::<probe_rs::CoreRegisterAddress>::into(reg_id), | |||
Into::<probe_rs::RegisterId>::into(reg_id), | |||
value as u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only cast to a u32 on a 32bit platform. I think this function is templated, so we can call a different version depending on our architecture.
} | ||
} | ||
|
||
self.halt_and_read(|core| { | ||
rval = core.read_word_32(addr)?; | ||
rval = core.read_word_32(addr.into())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably implement read_word_64
too. The default implementation just calls this function twice.
No I haven't. Will do so tomorrow. I agree we should also verify arm.
Correct. They might need to be squashed. |
ceb9597
to
eec4e07
Compare
eec4e07
to
fdca14d
Compare
cb4a1c4
to
d88d7fe
Compare
3ea5821
to
5fc5daf
Compare
Bumped to upstream master branch
|
2dcee76
to
8831295
Compare
- At least one change we need is not released with v0.13.0. Upstream's release mechanism is not rigorous and everything on master branch is tested and passed upstream's CI. So instead of using v0.13.0, we will use latest master branch. - updated implementations to reflect latest upstream changes(upstream did many refactorings) - rusb and libusb1-sys patch also need to be updated to a newer version as latest probe-rs is dependent on newer versions of rusb - deleted out-of-date comments
f3f73f3
to
1a7d105
Compare
Upstream probe-rs v0.13.0 has
probe-rs in use: https://github.com/rivosinc/probe-rs/tree/dev/zheren/humility_bump
I also updated rusb: https://github.com/rivosinc/rusb/tree/dev/zheren/test_bump_probe-rs