OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [arm-linux-tdep.h] - Blame information for rev 280

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* GNU/Linux on ARM target support, prototypes.
2
 
3
   Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
4
 
5
   This file is part of GDB.
6
 
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
 
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
 
20
struct regset;
21
struct regcache;
22
 
23
#define         ARM_CPSR_REGNUM         16
24
 
25
#define ARM_LINUX_SIZEOF_NWFPE (8 * FP_REGISTER_SIZE \
26
                                + 2 * INT_REGISTER_SIZE \
27
                                + 8 + INT_REGISTER_SIZE)
28
 
29
/* Support for register format used by the NWFPE FPA emulator.  Each
30
   register takes three words, where either the first one, two, or
31
   three hold a single, double, or extended precision value (depending
32
   on the corresponding tag).  The register set is eight registers,
33
   followed by the fpsr and fpcr, followed by eight tag bytes, and a
34
   final word flag which indicates whether NWFPE has been
35
   initialized.  */
36
 
37
#define NWFPE_FPSR_OFFSET (8 * FP_REGISTER_SIZE)
38
#define NWFPE_FPCR_OFFSET (NWFPE_FPSR_OFFSET + INT_REGISTER_SIZE)
39
#define NWFPE_TAGS_OFFSET (NWFPE_FPCR_OFFSET + INT_REGISTER_SIZE)
40
#define NWFPE_INITFLAG_OFFSET (NWFPE_TAGS_OFFSET + 8)
41
 
42
void arm_linux_supply_gregset (const struct regset *regset,
43
                               struct regcache *regcache,
44
                               int regnum, const void *gregs_buf, size_t len);
45
void arm_linux_collect_gregset (const struct regset *regset,
46
                                const struct regcache *regcache,
47
                                int regnum, void *gregs_buf, size_t len);
48
 
49
void supply_nwfpe_register (struct regcache *regcache, int regno,
50
                            const gdb_byte *regs);
51
void collect_nwfpe_register (const struct regcache *regcache, int regno,
52
                             gdb_byte *regs);
53
 
54
void arm_linux_supply_nwfpe (const struct regset *regset,
55
                             struct regcache *regcache,
56
                             int regnum, const void *regs_buf, size_t len);
57
void arm_linux_collect_nwfpe (const struct regset *regset,
58
                              const struct regcache *regcache,
59
                              int regnum, void *regs_buf, size_t len);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.