2004-05-14 11:46:45 +00:00
|
|
|
/* $NetBSD: reg.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */
|
|
|
|
/* $FreeBSD$ */
|
|
|
|
#ifndef MACHINE_REG_H
|
|
|
|
#define MACHINE_REG_H
|
|
|
|
|
2021-11-24 00:49:56 +00:00
|
|
|
#include <sys/_types.h>
|
|
|
|
|
2004-05-14 11:46:45 +00:00
|
|
|
struct reg {
|
|
|
|
unsigned int r[13];
|
|
|
|
unsigned int r_sp;
|
|
|
|
unsigned int r_lr;
|
|
|
|
unsigned int r_pc;
|
|
|
|
unsigned int r_cpsr;
|
|
|
|
};
|
|
|
|
|
2017-03-24 11:46:49 +00:00
|
|
|
struct fp_extended_precision {
|
2021-11-24 00:49:56 +00:00
|
|
|
__uint32_t fp_exponent;
|
|
|
|
__uint32_t fp_mantissa_hi;
|
|
|
|
__uint32_t fp_mantissa_lo;
|
2017-03-24 11:46:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct fp_extended_precision fp_reg_t;
|
|
|
|
|
2004-05-14 11:46:45 +00:00
|
|
|
struct fpreg {
|
|
|
|
unsigned int fpr_fpsr;
|
|
|
|
fp_reg_t fpr[8];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct dbreg {
|
2016-01-28 12:43:58 +00:00
|
|
|
#define ARM_WR_MAX 16 /* Maximum number of watchpoint registers */
|
|
|
|
unsigned int dbg_wcr[ARM_WR_MAX]; /* Watchpoint Control Registers */
|
|
|
|
unsigned int dbg_wvr[ARM_WR_MAX]; /* Watchpoint Value Registers */
|
2004-05-14 11:46:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* !MACHINE_REG_H */
|