Userland+Tests: Add initial riscv64 support

This commit is contained in:
Sönke Holz 2023-09-18 12:56:39 +02:00 committed by Andrew Kaster
commit 6824d2a788
Notes: sideshowbarker 2024-07-17 03:59:29 +09:00
23 changed files with 262 additions and 34 deletions

View file

@ -50,6 +50,9 @@ Backtrace::Backtrace(Reader const& coredump, const ELF::Core::ThreadInfo& thread
#elif ARCH(AARCH64)
auto start_bp = m_thread_info.regs.x[29];
auto start_ip = m_thread_info.regs.pc;
#elif ARCH(RISCV64)
auto start_bp = m_thread_info.regs.x[7];
auto start_ip = m_thread_info.regs.pc;
#else
# error Unknown architecture
#endif