-
Notifications
You must be signed in to change notification settings - Fork 16
feat: add support for risc-v #39
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
base: hotspot
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,8 @@ | |
| class PerfRegisterInfo | ||
| { | ||
| public: | ||
| enum Architecture { | ||
| enum Architecture | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated? |
||
| { | ||
| ARCH_ARM = 0, | ||
| ARCH_AARCH64, | ||
| ARCH_POWERPC, | ||
|
|
@@ -34,18 +35,19 @@ class PerfRegisterInfo | |
| ARCH_SPARC, | ||
| ARCH_X86, | ||
| ARCH_MIPS, | ||
| ARCH_RISCV, | ||
| ARCH_INVALID | ||
| }; | ||
|
|
||
| static const int s_numAbis = 2; // maybe more for some archs? | ||
|
|
||
| static Architecture archByName(const QByteArray &name); | ||
| static Architecture archByName(const QByteArray& name); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated? |
||
| static const int s_numRegisters[ARCH_INVALID][s_numAbis]; | ||
| static const int s_wordWidth[ARCH_INVALID][s_numAbis]; | ||
|
|
||
| // Translation table for converting perf register layout to dwarf register layout | ||
| // This is specific to ABI as the different ABIs may have different numbers of registers. | ||
| static const int *s_perfToDwarf[ARCH_INVALID][s_numAbis]; | ||
| static const int* s_perfToDwarf[ARCH_INVALID][s_numAbis]; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated? |
||
|
|
||
| // location of IP register or equivalent in perf register layout for each arch/abi | ||
| // This is not specific to ABI as perf makes sure IP is always in the same spot | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and below: the indentation looks off - is this really correct?