From 48a2d1413dfb6829338e064ab2322e83981dead7 Mon Sep 17 00:00:00 2001 From: Yury Gribov Date: Thu, 11 Apr 2024 19:34:34 +0300 Subject: [PATCH] Fixed CFI directives for MIPS FP regs. --- arch/mips/table.S.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/table.S.tpl b/arch/mips/table.S.tpl index 2208959..d52910c 100644 --- a/arch/mips/table.S.tpl +++ b/arch/mips/table.S.tpl @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Yury Gribov + * Copyright 2022-2024 Yury Gribov * * The MIT License (MIT) * @@ -43,8 +43,8 @@ _${lib_suffix}_save_regs_and_resolve: #define POP_REG(reg) addiu $$sp, $$sp, 4; .cfi_adjust_cfa_offset -4; lw reg, 0($$sp); .cfi_restore reg // dwarf_num = 32 + reg_num -#define PUSH_FREG(reg, dwarf_num) addiu $$sp, $$sp, -8; .cfi_adjust_cfa_offset 8; sdc1 reg, 8($$sp); .cfi_rel_offset dwarf_num, 0 -#define POP_FREG(reg, dwarf_num) addiu $$sp, $$sp, 8; .cfi_adjust_cfa_offset -8; ldc1 reg, 0($$sp); .cfi_restore dwarf_num +#define PUSH_FREG(reg, dwarf_num) addiu $$sp, $$sp, -8; .cfi_adjust_cfa_offset 8; sdc1 reg, 8($$sp); .cfi_rel_offset dwarf_num, 0; .cfi_rel_offset dwarf_num + 1, 4 +#define POP_FREG(reg, dwarf_num) addiu $$sp, $$sp, 8; .cfi_adjust_cfa_offset -8; ldc1 reg, 0($$sp); .cfi_restore dwarf_num; .cfi_restore dwarf_num + 1 PUSH_REG($$ra) PUSH_REG($$a0)