fenugrec / nissutils

49 stars 15 forks source link

nissutils needs ghidra helpers too #12

Closed fenugrec closed 2 years ago

fenugrec commented 2 years ago

see https://www.romraider.com/forum/viewtopic.php?f=65&t=17799

probably one script per cpu ? to define

fenugrec commented 2 years ago

IO regs : One thing I'm experimenting with is to use Renesas' own .h file as the authoritative source (instead of parsing a PDF like we did for the IDA .cfg files). [EDIT] That won't work well, because some structs like st_hcan2 are weirdly organized and have lots of padding bytes within the struct, which will overlap with other peripheral regs. This is fine when programming but not when reversing.

Leaving this for the record : the idea was to

  1. File->Parse C source. Mess with options in there, make a new parse profile with just the .h file.
  2. This brings in definitions for a whole bunch of structs and unions for all peripherals, but they're not mapped yet
  3. TODO: script / manually define symbols for each struct at the correct address.
fenugrec commented 2 years ago

I consider this complete, as of 94b30b25b3d9fd05e38e24ad1fc69970eedc2fe6 .