-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make signals_to_port_fields
patch work for newer PORT registerblocks
#10
Conversation
signals_to_port_fields
patch work for newer PORT registerblocks
Co-authored-by: Rahix <rahix@rahix.de>
After this change still getting warnings. Description probably can be fixed with info. from
|
Warnings are normal, the ATDF files are riddled with these minor issues ... What stands out to me is the
We need to investigate where that comes from. Edit: This change should give you more information about what is happening: diff --git a/src/atdf/mod.rs b/src/atdf/mod.rs
index 85b959255cef..f8fb797f387d 100644
--- a/src/atdf/mod.rs
+++ b/src/atdf/mod.rs
@@ -13,7 +13,7 @@ pub fn parse<R: std::io::Read>(r: R) -> crate::Result<crate::chip::Chip> {
let mut chip = chip::parse(&tree)?;
patch::signals_to_port_fields(&mut chip, &tree)
- .unwrap_or_else(|_| log::warn!("Could not apply 'signals_to_port_fields' patch!"));
+ .unwrap_or_else(|e| crate::cli::exit_with_error(e));
patch::remove_unsafe_cpu_regs(&mut chip, &tree)?;
Ok(chip) |
Co-authored-by: Rahix <rahix@rahix.de>
- dead code removal
Looks like this lines are problematic
Then we have definition per selected mode eg.
|
What document is this picture from? AFAIK, we currently do not support nested register groups (#4). But this should not hinder the remaining peripherals from working at least ... |
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.
The changes look good, but we still need to find what causes the patch to fail to apply. Can you try the patch I posted above and check what output you get?
Ok, got it. Error:
I can see only
|
Okay, I think I got it: This line: Line 17 in 52fd47b
also matches So it needs to be changed to something like e.g. .filter(|p| p.name.starts_with("PORT") && p.name.len() == 5) This is a bit dirty but I think it'll do the trick for now ... |
Maybe we can do same as prev. : list names explicite?
|
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.
Looks all good now, thanks a lot!
Sorry for the delay, wanted to do some regression tests before merging. All done now, though :) |
Not sure if it's correct way. For visibility. Will be good if anyone from #6 can advice.