LCOV - code coverage report
Current view: top level - backends - mips_cfi.c (source / functions) Hit Total Coverage
Test: elfutils-0.191 Lines: 0 7 0.0 %
Date: 2024-08-30 13:45:08 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* MIPS ABI-specified defaults for DWARF CFI.
       2                 :            :    Copyright (C) 2009 Red Hat, Inc.
       3                 :            :    Copyright (C) 2024 CIP United Inc.
       4                 :            :    This file is part of elfutils.
       5                 :            : 
       6                 :            :    This file is free software; you can redistribute it and/or modify
       7                 :            :    it under the terms of either
       8                 :            : 
       9                 :            :      * the GNU Lesser General Public License as published by the Free
      10                 :            :        Software Foundation; either version 3 of the License, or (at
      11                 :            :        your option) any later version
      12                 :            : 
      13                 :            :    or
      14                 :            : 
      15                 :            :      * the GNU General Public License as published by the Free
      16                 :            :        Software Foundation; either version 2 of the License, or (at
      17                 :            :        your option) any later version
      18                 :            : 
      19                 :            :    or both in parallel, as here.
      20                 :            : 
      21                 :            :    elfutils is distributed in the hope that it will be useful, but
      22                 :            :    WITHOUT ANY WARRANTY; without even the implied warranty of
      23                 :            :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      24                 :            :    General Public License for more details.
      25                 :            : 
      26                 :            :    You should have received copies of the GNU General Public License and
      27                 :            :    the GNU Lesser General Public License along with this program.  If
      28                 :            :    not, see <http://www.gnu.org/licenses/>.  */
      29                 :            : 
      30                 :            : #ifdef HAVE_CONFIG_H
      31                 :            : # include <config.h>
      32                 :            : #endif
      33                 :            : 
      34                 :            : #include <dwarf.h>
      35                 :            : 
      36                 :            : #define BACKEND mips_
      37                 :            : #include "libebl_CPU.h"
      38                 :            : 
      39                 :            : int
      40                 :          0 : mips_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
      41                 :            : {
      42                 :          0 :   static const uint8_t abi_cfi[] =
      43                 :            :     {
      44                 :            :       DW_CFA_def_cfa, ULEB128_7 (31), ULEB128_7 (0),
      45                 :            :       /* Callee-saved regs.  */
      46                 :            :       DW_CFA_same_value, ULEB128_7 (16), /* s0 */
      47                 :            :       DW_CFA_same_value, ULEB128_7 (17), /* s1 */
      48                 :            :       DW_CFA_same_value, ULEB128_7 (18), /* s2 */
      49                 :            :       DW_CFA_same_value, ULEB128_7 (19), /* s3 */
      50                 :            :       DW_CFA_same_value, ULEB128_7 (20), /* s4 */
      51                 :            :       DW_CFA_same_value, ULEB128_7 (21), /* s5 */
      52                 :            :       DW_CFA_same_value, ULEB128_7 (22), /* s6 */
      53                 :            :       DW_CFA_same_value, ULEB128_7 (23), /* s7 */
      54                 :            :       DW_CFA_same_value, ULEB128_7 (28), /* gp */
      55                 :            :       DW_CFA_same_value, ULEB128_7 (29), /* sp */
      56                 :            :       DW_CFA_same_value, ULEB128_7 (30), /* fp */
      57                 :            : 
      58                 :            :       DW_CFA_val_offset, ULEB128_7 (29), ULEB128_7 (0),
      59                 :            :     };
      60                 :            : 
      61                 :          0 :   abi_info->initial_instructions = abi_cfi;
      62                 :          0 :   abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
      63                 :          0 :   abi_info->data_alignment_factor = 8;
      64                 :            : 
      65                 :          0 :   abi_info->return_address_register = 31; /* %ra */
      66                 :            : 
      67                 :          0 :   return 0;
      68                 :            : }

Generated by: LCOV version 1.16