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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [gdbserver/] [linux-or32-low.c] - Diff between revs 445 and 446

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 445 Rev 446
Line 37... Line 37...
 
 
#ifdef HAVE_SYS_REG_H
#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
#include <sys/reg.h>
#endif
#endif
 
 
 
 
/* -------------------------------------------------------------------------- */
 
/*!Initialize the register data.
 
 
 
  Should be automagically created from a data file in gdb/regformats, but for
 
  now we do it manually.                                                      */
 
/* -------------------------------------------------------------------------- */
 
static void
 
init_registers_or32 ()
 
{
 
  struct reg regs_or32[] = {
  struct reg regs_or32[] = {
    { "npc", PC * 8, 32 },
    { "npc", PC * 8, 32 },
    { "sr", SR * 8, 32 },
    { "sr", SR * 8, 32 },
    { "sp", SP * 8, 32 },
    { "sp", SP * 8, 32 },
    { "fp", GPR2 * 8, 32 },
    { "fp", GPR2 * 8, 32 },
Line 82... Line 72...
    { "r28", GPR28 * 8, 32 },
    { "r28", GPR28 * 8, 32 },
    { "r29", GPR29 * 8, 32 },
    { "r29", GPR29 * 8, 32 },
    { "r30", GPR30 * 8, 32 },
    { "r30", GPR30 * 8, 32 },
    { "r31", GPR31 * 8, 32 },
    { "r31", GPR31 * 8, 32 },
  };
  };
 
 
 
/* -------------------------------------------------------------------------- */
 
/*!Initialize the register data.
 
 
 
  Should be automagically created from a data file in gdb/regformats, but for
 
  now we do it manually.                                                      */
 
/* -------------------------------------------------------------------------- */
 
static void
 
init_registers_or32 ()
 
{
 
 
  static const char *expedite_regs_or32[] = { "sp", "lr", "npc", 0 };
  static const char *expedite_regs_or32[] = { "sp", "lr", "npc", 0 };
 
 
  set_register_cache (regs_or32, sizeof (regs_or32) / sizeof (regs_or32[0]));
  set_register_cache (regs_or32, sizeof (regs_or32) / sizeof (regs_or32[0]));
  gdbserver_expedite_regs = expedite_regs_or32;
  gdbserver_expedite_regs = expedite_regs_or32;
  gdbserver_xmltarget     = NULL;
  gdbserver_xmltarget     = NULL;

powered by: WebSVN 2.1.0

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