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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [bfd/] [hosts/] [x86-64linux.h] - Diff between revs 14 and 161

Show entire file | Details | Blame | View Log

Rev 14 Rev 161
Line 35... Line 35...
 
 
#ifdef HAVE_STDINT_H
#ifdef HAVE_STDINT_H
#include <stdint.h>
#include <stdint.h>
#else
#else
typedef unsigned int uint32_t;
typedef unsigned int uint32_t;
 
typedef unsigned long long int uint64_t;
#endif
#endif
 
 
#undef HAVE_PRPSINFO32_T
#undef HAVE_PRPSINFO32_T
#define HAVE_PRPSINFO32_T
#define HAVE_PRPSINFO32_T
#undef HAVE_PRPSINFO32_T_PR_PID
#undef HAVE_PRPSINFO32_T_PR_PID
Line 47... Line 48...
#undef HAVE_PRSTATUS32_T
#undef HAVE_PRSTATUS32_T
#define HAVE_PRSTATUS32_T
#define HAVE_PRSTATUS32_T
 
 
/* These are the 32-bit x86 structures.  */
/* These are the 32-bit x86 structures.  */
 
 
struct user_fpregs32_struct
 
{
 
  int32_t cwd;
 
  int32_t swd;
 
  int32_t twd;
 
  int32_t fip;
 
  int32_t fcs;
 
  int32_t foo;
 
  int32_t fos;
 
  int32_t st_space [20];
 
};
 
 
 
struct user_fpxregs32_struct
 
{
 
  unsigned short int cwd;
 
  unsigned short int swd;
 
  unsigned short int twd;
 
  unsigned short int fop;
 
  int32_t fip;
 
  int32_t fcs;
 
  int32_t foo;
 
  int32_t fos;
 
  int32_t mxcsr;
 
  int32_t reserved;
 
  int32_t st_space[32];   /* 8*16 bytes for each FP-reg = 128 bytes */
 
  int32_t xmm_space[32];  /* 8*16 bytes for each XMM-reg = 128 bytes */
 
  int32_t padding[56];
 
};
 
 
 
struct user_regs32_struct
struct user_regs32_struct
{
{
  int32_t ebx;
  int32_t ebx;
  int32_t ecx;
  int32_t ecx;
  int32_t edx;
  int32_t edx;
Line 97... Line 69...
  int32_t eflags;
  int32_t eflags;
  int32_t esp;
  int32_t esp;
  int32_t xss;
  int32_t xss;
};
};
 
 
struct user32
struct user_regsx32_struct
{
{
  struct user_regs32_struct     regs;
  uint64_t r15;
  int                           u_fpvalid;
  uint64_t r14;
  struct user_fpregs32_struct   i387;
  uint64_t r13;
  uint32_t                      u_tsize;
  uint64_t r12;
  uint32_t                      u_dsize;
  uint64_t rbp;
  uint32_t                      u_ssize;
  uint64_t rbx;
  uint32_t                      start_code;
  uint64_t r11;
  uint32_t                      start_stack;
  uint64_t r10;
  int32_t                       signal;
  uint64_t r9;
  int                           reserved;
  uint64_t r8;
  struct user_regs32_struct*    u_ar0;
  uint64_t rax;
  struct user_fpregs32_struct*  u_fpstate;
  uint64_t rcx;
  uint32_t                      magic;
  uint64_t rdx;
  char                          u_comm [32];
  uint64_t rsi;
  int                           u_debugreg [8];
  uint64_t rdi;
 
  uint64_t orig_rax;
 
  uint64_t rip;
 
  uint64_t cs;
 
  uint64_t eflags;
 
  uint64_t rsp;
 
  uint64_t ss;
 
  uint64_t fs_base;
 
  uint64_t gs_base;
 
  uint64_t ds;
 
  uint64_t es;
 
  uint64_t fs;
 
  uint64_t gs;
};
};
 
 
/* Type for a general-purpose register.  */
/* Type for a general-purpose register.  */
typedef unsigned int elf_greg32_t;
typedef uint32_t elf_greg32_t;
 
typedef uint64_t elf_gregx32_t;
 
 
/* And the whole bunch of them.  We could have used `struct
/* And the whole bunch of them.  We could have used `struct
   user_regs_struct' directly in the typedef, but tradition says that
   user_regs_struct' directly in the typedef, but tradition says that
   the register set is an array, which does have some peculiar
   the register set is an array, which does have some peculiar
   semantics, so leave it that way.  */
   semantics, so leave it that way.  */
#define ELF_NGREG32 (sizeof (struct user_regs32_struct) / sizeof(elf_greg32_t))
#define ELF_NGREG32 (sizeof (struct user_regs32_struct) / sizeof(elf_greg32_t))
typedef elf_greg32_t elf_gregset32_t[ELF_NGREG32];
typedef elf_greg32_t elf_gregset32_t[ELF_NGREG32];
 
#define ELF_NGREGX32 (sizeof (struct user_regsx32_struct) / sizeof(elf_gregx32_t))
/* Register set for the floating-point registers.  */
typedef elf_gregx32_t elf_gregsetx32_t[ELF_NGREGX32];
typedef struct user_fpregs32_struct elf_fpregset32_t;
 
 
 
/* Register set for the extended floating-point registers.  Includes
 
   the Pentium III SSE registers in addition to the classic
 
   floating-point stuff.  */
 
typedef struct user_fpxregs32_struct elf_fpxregset32_t;
 
 
 
 
 
/* Definitions to generate Intel SVR4-like core files.  These mostly
/* Definitions to generate Intel SVR4-like core files.  These mostly
   have the same names as the SVR4 types with "elf_" tacked on the
   have the same names as the SVR4 types with "elf_" tacked on the
   front to prevent clashes with Linux definitions, and the typedef
   front to prevent clashes with Linux definitions, and the typedef
   forms have been avoided.  This is mostly like the SVR4 structure,
   forms have been avoided.  This is mostly like the SVR4 structure,
Line 166... Line 144...
    struct prstatus32_timeval pr_cstime;        /* Cumulative system time.  */
    struct prstatus32_timeval pr_cstime;        /* Cumulative system time.  */
    elf_gregset32_t pr_reg;             /* GP registers.  */
    elf_gregset32_t pr_reg;             /* GP registers.  */
    int pr_fpvalid;                     /* True if math copro being used.  */
    int pr_fpvalid;                     /* True if math copro being used.  */
  };
  };
 
 
 
struct elf_prstatusx32
 
  {
 
    struct elf_siginfo pr_info;         /* Info associated with signal.  */
 
    short int pr_cursig;                /* Current signal.  */
 
    unsigned int pr_sigpend;            /* Set of pending signals.  */
 
    unsigned int pr_sighold;            /* Set of held signals.  */
 
    pid_t pr_pid;
 
    pid_t pr_ppid;
 
    pid_t pr_pgrp;
 
    pid_t pr_sid;
 
    struct prstatus32_timeval pr_utime;         /* User time.  */
 
    struct prstatus32_timeval pr_stime;         /* System time.  */
 
    struct prstatus32_timeval pr_cutime;        /* Cumulative user time.  */
 
    struct prstatus32_timeval pr_cstime;        /* Cumulative system time.  */
 
    elf_gregsetx32_t pr_reg;            /* GP registers.  */
 
    int pr_fpvalid;                     /* True if math copro being used.  */
 
  };
 
 
struct elf_prpsinfo32
struct elf_prpsinfo32
  {
  {
    char pr_state;                      /* Numeric process state.  */
    char pr_state;                      /* Numeric process state.  */
    char pr_sname;                      /* Char for pr_state.  */
    char pr_sname;                      /* Char for pr_state.  */
Line 187... Line 182...
 
 
/* The rest of this file provides the types for emulation of the
/* The rest of this file provides the types for emulation of the
   Solaris <proc_service.h> interfaces that should be implemented by
   Solaris <proc_service.h> interfaces that should be implemented by
   users of libthread_db.  */
   users of libthread_db.  */
 
 
/* Register sets.  Linux has different names.  */
 
typedef elf_gregset_t prgregset32_t;
 
typedef elf_fpregset_t prfpregset32_t;
 
 
 
/* Process status and info.  In the end we do provide typedefs for them.  */
/* Process status and info.  In the end we do provide typedefs for them.  */
typedef struct elf_prstatus32 prstatus32_t;
typedef struct elf_prstatus32 prstatus32_t;
 
typedef struct elf_prstatusx32 prstatusx32_t;
typedef struct elf_prpsinfo32 prpsinfo32_t;
typedef struct elf_prpsinfo32 prpsinfo32_t;
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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