2 * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved.
4 * This software may be freely used, copied, modified, and distributed
5 * provided that the above copyright notice is preserved in all copies of the
10 * ARM symbolic debugger toolbox: dbg_cp.h
22 #define Dbg_Access_Readable 1
23 #define Dbg_Access_Writable 2
24 #define Dbg_Access_CPDT 4 /* else CPRT */
27 unsigned short rmin, rmax;
28 /* a single description can be used for a range of registers with
29 the same properties *accessed via CPDT instructions*
31 unsigned char nbytes; /* size of register */
32 unsigned char access; /* see above (Access_xxx) */
34 struct { /* CPDT instructions do not allow the coprocessor much freedom:
35 only bit 22 ('N') and 12-15 ('CRd') are free for the
36 coprocessor to use as it sees fit.
41 struct { /* CPRT instructions have much more latitude. The bits fixed
42 by the ARM are 24..31 (condition mask & opcode)
44 8..15 (cpnum, arm register)
46 leaving 14 bits free to the coprocessor (fortunately
47 falling within two bytes).
49 unsigned char read_b0, read_b1,
55 struct Dbg_CoProDesc {
57 Dbg_CoProRegDesc regdesc[1/* really nentries */];
60 #define Dbg_CoProDesc_Size(n) (sizeof(struct Dbg_CoProDesc) + ((n)-1)*sizeof(Dbg_CoProRegDesc))