From 6cae0b2d651cbd51ddc4f179e701fce624295f5d Mon Sep 17 00:00:00 2001 From: zhangjialing Date: Mon, 7 Jun 2021 15:46:17 +0800 Subject: [PATCH] use loongarch save register $s0 $s1 $2 --- src/lispmach.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lispmach.h b/src/lispmach.h index 0411ed20..376f1ef4 100644 --- a/src/lispmach.h +++ b/src/lispmach.h @@ -436,6 +436,11 @@ list_ref (repv list, int elt) #define SP_REG asm("%l1") #define SLOTS_REG asm("%l2") #endif +#ifdef __loongarch__ +#define PC_REG asm("$s0") +#define SP_REG asm("$s1") +#define SLOTS_REG asm("$s2") +#endif #ifdef __alpha__ #ifdef __CRAY__ #define PC_REG asm("r9")