X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fxscale.h;h=a86edb2fba6a35bc091060ee475cf38ee2e89fb4;hb=c06ac3b5d357351e34438452a72a14e534910c6f;hp=7213db7b6eda4f31646e640c377c284fa8ae3bfc;hpb=374127301ec1d72033b9d573b72c7abdfd61990d;p=openocd.git diff --git a/src/target/xscale.h b/src/target/xscale.h index 7213db7b6e..a86edb2fba 100644 --- a/src/target/xscale.h +++ b/src/target/xscale.h @@ -16,13 +16,11 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef XSCALE_H -#define XSCALE_H +#ifndef OPENOCD_TARGET_XSCALE_H +#define OPENOCD_TARGET_XSCALE_H #include "arm.h" #include "armv4_5_mmu.h" @@ -176,4 +174,15 @@ enum { #define ERROR_XSCALE_NO_TRACE_DATA (-700) -#endif /* XSCALE_H */ +/* DCSR bit and field definitions */ +#define DCSR_TR (1 << 16) +#define DCSR_TU (1 << 17) +#define DCSR_TS (1 << 18) +#define DCSR_TA (1 << 19) +#define DCSR_TD (1 << 20) +#define DCSR_TI (1 << 22) +#define DCSR_TF (1 << 23) +#define DCSR_TRAP_MASK \ + (DCSR_TF | DCSR_TI | DCSR_TD | DCSR_TA | DCSR_TS | DCSR_TU | DCSR_TR) + +#endif /* OPENOCD_TARGET_XSCALE_H */