X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fxscale.h;h=a86edb2fba6a35bc091060ee475cf38ee2e89fb4;hb=9527d1e595e316a4155c808fafa3a0ea6baa72f2;hp=c5cd7b7746bba45d0e4239bc2278f38d7f8d5ea7;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=openocd.git diff --git a/src/target/xscale.h b/src/target/xscale.h index c5cd7b7746..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., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 */