1 /* GNU/Linux on ARM target support, prototypes.
4 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
26 #define ARM_CPSR_REGNUM 16
28 #define ARM_LINUX_SIZEOF_NWFPE (8 * FP_REGISTER_SIZE \
29 + 2 * INT_REGISTER_SIZE \
30 + 8 + INT_REGISTER_SIZE)
32 /* Support for register format used by the NWFPE FPA emulator. Each
33 register takes three words, where either the first one, two, or
34 three hold a single, double, or extended precision value (depending
35 on the corresponding tag). The register set is eight registers,
36 followed by the fpsr and fpcr, followed by eight tag bytes, and a
37 final word flag which indicates whether NWFPE has been
40 #define NWFPE_FPSR_OFFSET (8 * FP_REGISTER_SIZE)
41 #define NWFPE_FPCR_OFFSET (NWFPE_FPSR_OFFSET + INT_REGISTER_SIZE)
42 #define NWFPE_TAGS_OFFSET (NWFPE_FPCR_OFFSET + INT_REGISTER_SIZE)
43 #define NWFPE_INITFLAG_OFFSET (NWFPE_TAGS_OFFSET + 8)
45 void arm_linux_supply_gregset (const struct regset
*regset
,
46 struct regcache
*regcache
,
47 int regnum
, const void *gregs_buf
, size_t len
);
48 void arm_linux_collect_gregset (const struct regset
*regset
,
49 const struct regcache
*regcache
,
50 int regnum
, void *gregs_buf
, size_t len
);
52 void supply_nwfpe_register (struct regcache
*regcache
, int regno
,
53 const gdb_byte
*regs
);
54 void collect_nwfpe_register (const struct regcache
*regcache
, int regno
,
57 void arm_linux_supply_nwfpe (const struct regset
*regset
,
58 struct regcache
*regcache
,
59 int regnum
, const void *regs_buf
, size_t len
);
60 void arm_linux_collect_nwfpe (const struct regset
*regset
,
61 const struct regcache
*regcache
,
62 int regnum
, void *regs_buf
, size_t len
);
This page took 0.031161 seconds and 4 git commands to generate.