Skip to content
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

FPU registers for ARM, ARM64 #301

Open
dkmcgrath opened this issue Sep 25, 2023 · 0 comments
Open

FPU registers for ARM, ARM64 #301

dkmcgrath opened this issue Sep 25, 2023 · 0 comments

Comments

@dkmcgrath
Copy link

dkmcgrath commented Sep 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant