Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app/perfregisterinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ static int aarch64[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
static int x86[] = {0, 2, 3, 1, 7, 6, 4, 5, 8};
static int x86_64[] = {0, 3, 2, 1, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23, 8};

static int mips[] = { 32, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31};

static int none[] = {0};

const int *PerfRegisterInfo::s_perfToDwarf[PerfRegisterInfo::ARCH_INVALID][PerfRegisterInfo::s_numAbis] = {
Expand All @@ -60,7 +63,8 @@ const int *PerfRegisterInfo::s_perfToDwarf[PerfRegisterInfo::ARCH_INVALID][PerfR
{none, none },
{none, none },
{none, none },
{x86, x86_64 }
{x86, x86_64 },
{mips, mips },
};

const int PerfRegisterInfo::s_perfIp[ARCH_INVALID] = {
Expand Down Expand Up @@ -147,5 +151,8 @@ PerfRegisterInfo::Architecture PerfRegisterInfo::archByName(const QByteArray &na
|| name == "amd64")
return ARCH_X86;

if (name.startsWith("mips"))
return ARCH_MIPS;

return ARCH_INVALID;
}
1 change: 1 addition & 0 deletions app/perfregisterinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class PerfRegisterInfo
ARCH_SH,
ARCH_SPARC,
ARCH_X86,
ARCH_MIPS,
ARCH_INVALID
};

Expand Down