History

Add register definitions for OpenBSD/riscv64

Brian Callahan committed 5 years ago

Commit 46bf3f91 parent ab13f1a1 file · +3 −0Browse files

Unified · Split

tccrun.c+3−0
@@ -733,6 +733,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc) · 732 unmodified lines
733#elif defined(__aarch64__)733#elif defined(__aarch64__)
734 rc->ip = uc->uc_mcontext.pc;734 rc->ip = uc->uc_mcontext.pc;
735 rc->fp = uc->uc_mcontext.regs[29];735 rc->fp = uc->uc_mcontext.regs[29];
736#elif defined(__riscv) && defined(__OpenBSD__)
737 rc->ip = uc->sc_sepc;
738 rc->fp = uc->sc_s[0];
736#elif defined(__riscv)739#elif defined(__riscv)
737 rc->ip = uc->uc_mcontext.__gregs[REG_PC];740 rc->ip = uc->uc_mcontext.__gregs[REG_PC];
738 rc->fp = uc->uc_mcontext.__gregs[REG_S0];741 rc->fp = uc->uc_mcontext.__gregs[REG_S0];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t