~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to src/target/xscale.h

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *   Copyright (C) 2005 by Dominic Rath                                    *
3
3
 *   Dominic.Rath@gmx.de                                                   *
4
4
 *                                                                         *
5
 
 *   Copyright (C) 2007,2008 �yvind Harboe                                 *
 
5
 *   Copyright (C) 2007,2008 Øyvind Harboe                                 *
6
6
 *   oyvind.harboe@zylin.com                                               *
7
7
 *                                                                         *
8
8
 *   This program is free software; you can redistribute it and/or modify  *
29
29
 
30
30
#define XSCALE_COMMON_MAGIC 0x58534341
31
31
 
32
 
typedef struct xscale_jtag_s
33
 
{
34
 
        /* position in JTAG scan chain */
35
 
        jtag_tap_t *tap;
36
 
 
37
 
        /* IR length and instructions */
38
 
        int ir_length;
39
 
        uint32_t dbgrx;
40
 
        uint32_t dbgtx;
41
 
        uint32_t ldic;
42
 
        uint32_t dcsr;
43
 
} xscale_jtag_t;
 
32
/* These four JTAG instructions are architecturally defined.
 
33
 * Lengths are core-specific; originally 5 bits, later 7.
 
34
 */
 
35
#define XSCALE_DBGRX    0x02
 
36
#define XSCALE_DBGTX    0x10
 
37
#define XSCALE_LDIC     0x07
 
38
#define XSCALE_SELDCSR  0x09
44
39
 
45
40
enum xscale_debug_reason
46
41
{
90
85
        /* XScale registers (CP15, DBG) */
91
86
        reg_cache_t *reg_cache;
92
87
 
93
 
        /* pxa250, pxa255, pxa27x, ixp42x, ... */
94
 
        char *variant;
95
 
 
96
 
        xscale_jtag_t jtag_info;
97
 
 
98
88
        /* current state of the debug handler */
99
 
        int handler_installed;
100
 
        int handler_running;
101
89
        uint32_t handler_address;
102
90
 
103
91
        /* target-endian buffers with exception vectors */