diff options
author | Maxim Grigoriev <maxim2405@gmail.com> | 2007-08-08 23:22:18 +0000 |
---|---|---|
committer | Maxim Grigoriev <maxim2405@gmail.com> | 2007-08-08 23:22:18 +0000 |
commit | 7b8715682ae902fa51d0bf17dd57e6493a8c7711 (patch) | |
tree | 1b0a089576aa3653bf8bd512f548975694f4b146 /gdb/xtensa-tdep.h | |
parent | 652aaa2406a6b38bf38fdeb6aba975b7825f9f2d (diff) | |
download | gdb-7b8715682ae902fa51d0bf17dd57e6493a8c7711.zip gdb-7b8715682ae902fa51d0bf17dd57e6493a8c7711.tar.gz gdb-7b8715682ae902fa51d0bf17dd57e6493a8c7711.tar.bz2 |
2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
(xtensa_register_group_t): Add entries for coprocessors.
* xtensa-tdep.c (xtensa_init_reggroups): New register groups.
(xtensa_add_reggroups): Likewise.
(xtensa_register_reggroup_p): Likewise.
(xtensa_coprocessor_register_group): New function.
(xtensa_cp): New.
Diffstat (limited to 'gdb/xtensa-tdep.h')
-rw-r--r-- | gdb/xtensa-tdep.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h index 4b21908..9f450c6 100644 --- a/gdb/xtensa-tdep.h +++ b/gdb/xtensa-tdep.h @@ -44,6 +44,8 @@ typedef enum /* Xtensa register group. */ +#define XTENSA_MAX_COPROCESSOR 0x08 /* Number of Xtensa coprocessors. */ + typedef enum { xtRegisterGroupUnknown = 0, @@ -58,6 +60,16 @@ typedef enum xtRegisterGroupFloat = 0x0400, /* Floating Point. */ xtRegisterGroupVectra = 0x0800, /* Vectra. */ xtRegisterGroupSystem = 0x1000, /* System. */ + + xtRegisterGroupCP0 = 0x01000000, /* CP0. */ + xtRegisterGroupCP1 = 0x02000000, /* CP1. */ + xtRegisterGroupCP2 = 0x04000000, /* CP2. */ + xtRegisterGroupCP3 = 0x08000000, /* CP3. */ + xtRegisterGroupCP4 = 0x10000000, /* CP4. */ + xtRegisterGroupCP5 = 0x20000000, /* CP5. */ + xtRegisterGroupCP6 = 0x40000000, /* CP6. */ + xtRegisterGroupCP7 = 0x80000000, /* CP7. */ + } xtensa_register_group_t; |