Skip to content

FPU registers for ARM, ARM64 #301

@dkmcgrath

Description

@dkmcgrath

Currently, there is no support for ARM/ARM64 FPU registers. Would it be possible to add those in? Moving from GDB to LLDB and from x86 to ARM, this is something that I miss.

As of now, passing --fpu on an ARM system results in voltron crashing:

❯ ./voltron v r --fpu 

Exception in thread Thread-1: 
Traceback (most recent call last): 
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner  
    self.run() 
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run 
    self._target(*self._args, **self._kwargs) 
  File "/Users/dmcgrath/Library/Python/3.9/lib/python/site-packages/voltron/core.py", line 549, in run 
    self.update() 
  File "/Users/dmcgrath/Library/Python/3.9/lib/python/site-packages/voltron/core.py", line 518, in update 
    self.callback(results) 
  File "/Users/dmcgrath/Library/Python/3.9/lib/python/site-packages/voltron/view.py", line 396, in render 
    self.render(results) 
  File "/Users/dmcgrath/Library/Python/3.9/lib/python/site-packages/voltron/plugins/view/register.py", line 484, in render 
    template = '\n'.join(map(lambda x: self.TEMPLATES[arch][self.config.orientation][x], self.config.sections)) 
  File "/Users/dmcgrath/Library/Python/3.9/lib/python/site-packages/voltron/plugins/view/register.py", line 484, in <lambda> 
    template = '\n'.join(map(lambda x: self.TEMPLATES[arch][self.config.orientation][x], self.config.sections)) 
KeyError: 'fpu'  

This is on an M1 Max with 64GB of RAM, running macOS 14.0 Sonoma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions