Rahix / tbot

Automation/Testing tool for Embedded Linux Development
https://tbot.tools
GNU General Public License v3.0
91 stars 21 forks source link

Register classes #23

Open demonpo opened 4 years ago

demonpo commented 4 years ago

Classes to store information about registers and interact with them

Signed-off-by: Daniel Garcia demonpogp@gmail.com

demonpo commented 4 years ago

Hi :grin:, this commit has the basic classes. pls, check if they are ok. If everything is ok, what would be the interactions with the registers? (read, write?). A new class should be needed for the interactions?

Rahix commented 4 years ago

Hi, sorry for the late response ... I think the code looks good, although I want to mention one thing: The RegisterMap class currently has methods to add and remove registers. I'd remove them as the register-map is more meant to be a static lookup-list, not something which can be dynamically modified.

demonpo commented 4 years ago

hi @Rahix :wave:, check the new commit. It has some working interactions (read and write) for 32bits processors. The code will need refactoring for sure :sweat_smile: . Tell me what you think about this approach.