Skip to content

Commit

Permalink
rebase to 47a0a17
Browse files Browse the repository at this point in the history
  • Loading branch information
junchao-loongson committed May 31, 2024
1 parent fd76a9a commit ab12fbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/caml/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ typedef uint64_t uintnat;
#define Cache_line_bsize 256
#elif defined(TARGET_arm64) || defined(TARGET_power)
#define Cache_line_bsize 128
#elif defined(TARGET_amd64) || defined(TARGET_riscv)
#elif defined(TARGET_amd64) || defined(TARGET_riscv) || defined(TARGET_loongarch64)
#define Cache_line_bsize 64
#elif (!defined(NATIVE_CODE))
#define Cache_line_bsize 64
Expand Down
6 changes: 3 additions & 3 deletions runtime/caml/stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
See loongarch64.S and loongarch64/proc.ml for the indices */
#define Wosize_gc_regs (2 + 23 /* int regs */ + 24 /* float regs */)
#define Saved_return_address(sp) *((intnat *)((sp) - 8))
/* LoongArch does not use a frame pointer, but requires the stack to be
16-aligned. */
#define Pop_frame_pointer(sp) sp += sizeof(value)
#define First_frame(sp) ((sp) + 16)
#define Saved_gc_regs(sp) (*(value **)((sp) + 24))
#define Stack_header_size 32
#endif

/* Declaration of variables used in the asm code */
Expand Down

0 comments on commit ab12fbe

Please sign in to comment.