1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:27:35 +00:00

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
parent c6b2a07326
commit 6824d2a788
23 changed files with 262 additions and 34 deletions

View file

@ -170,6 +170,8 @@ ErrorOr<Vector<NonnullOwnPtr<DebugInfo::VariableInfo>>> DebugInfo::get_variables
ip = regs.rip;
#elif ARCH(AARCH64)
TODO_AARCH64();
#elif ARCH(RISCV64)
TODO_RISCV64();
#else
# error Unknown architecture
#endif

View file

@ -377,6 +377,8 @@ FlatPtr DebugSession::single_step()
regs.rflags |= TRAP_FLAG;
#elif ARCH(AARCH64)
TODO_AARCH64();
#elif ARCH(RISCV64)
TODO_RISCV64();
#else
# error Unknown architecture
#endif
@ -394,6 +396,8 @@ FlatPtr DebugSession::single_step()
regs.rflags &= ~(TRAP_FLAG);
#elif ARCH(AARCH64)
TODO_AARCH64();
#elif ARCH(RISCV64)
TODO_RISCV64();
#else
# error Unknown architecture
#endif

View file

@ -193,6 +193,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
#elif ARCH(AARCH64)
FlatPtr current_instruction;
TODO_AARCH64();
#elif ARCH(RISCV64)
FlatPtr current_instruction;
TODO_RISCV64();
#else
# error Unknown architecture
#endif
@ -217,6 +220,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
#elif ARCH(AARCH64)
FlatPtr current_ebp;
TODO_AARCH64();
#elif ARCH(RISCV64)
FlatPtr current_ebp;
TODO_RISCV64();
#else
# error Unknown architecture
#endif
@ -266,6 +272,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
#elif ARCH(AARCH64)
(void)breakpoint_addr;
TODO_AARCH64();
#elif ARCH(RISCV64)
(void)breakpoint_addr;
TODO_RISCV64();
#else
# error Unknown architecture
#endif