You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ghidra supports bit packed bytes for structs. This can allow labeling of the individual bits in the register. Since SVD files already contain this info, this can be used to add additional detail to the register mapping when disassembling, reducing need to reference a datasheet.
I would be happy to implement this myself, but I will not be able to for a couple of weeks. I wanted to add this as a report so that I have a personal reminder of it.
Edit: Here is an example of a bit packed struct for the USB_CNTR register on the STM32L100R8
The text was updated successfully, but these errors were encountered:
@marsfan I would be very interested in this feature, but I'm a bit discouraged by NationalSecurityAgency/ghidra#647: since the decompiler can't handle bitfields yet, will adding this be useful for reverse engineers?
Ghidra supports bit packed bytes for structs. This can allow labeling of the individual bits in the register. Since SVD files already contain this info, this can be used to add additional detail to the register mapping when disassembling, reducing need to reference a datasheet.
I would be happy to implement this myself, but I will not be able to for a couple of weeks. I wanted to add this as a report so that I have a personal reminder of it.
Edit: Here is an example of a bit packed struct for the USB_CNTR register on the STM32L100R8
The text was updated successfully, but these errors were encountered: