xref: /netbsd-src/external/gpl3/gdb/dist/include/opcode/tic6x-control-registers.h (revision 02f41505626a9ceb584d30d0789203495760ac88)
198b9484cSchristos /* TI C6X control register information.
2*02f41505Schristos    Copyright (C) 2010-2024 Free Software Foundation, Inc.
398b9484cSchristos 
498b9484cSchristos    This program is free software; you can redistribute it and/or modify
598b9484cSchristos    it under the terms of the GNU General Public License as published by
698b9484cSchristos    the Free Software Foundation; either version 3 of the License, or
798b9484cSchristos    (at your option) any later version.
898b9484cSchristos 
998b9484cSchristos    This program is distributed in the hope that it will be useful,
1098b9484cSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1198b9484cSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1298b9484cSchristos    GNU General Public License for more details.
1398b9484cSchristos 
1498b9484cSchristos    You should have received a copy of the GNU General Public License
1598b9484cSchristos    along with this program; if not, write to the Free Software
1698b9484cSchristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
1798b9484cSchristos    MA 02110-1301, USA.  */
1898b9484cSchristos 
1998b9484cSchristos /* Define the CTRL macro before including this file; it takes as
2098b9484cSchristos    arguments the fields from tic6x_ctrl (defined in tic6x.h).  The
2198b9484cSchristos    control register name is given as an identifier; the isa_variants
2298b9484cSchristos    field without the leading TIC6X_INSN_; the rw field without the
2398b9484cSchristos    leading tic6x_rw_.  */
2498b9484cSchristos 
2598b9484cSchristos CTRL(amr, C62X, read_write, 0x0, 0x10)
2698b9484cSchristos CTRL(csr, C62X, read_write, 0x1, 0x10)
2798b9484cSchristos CTRL(dnum, C64XP, read, 0x11, 0x1f)
2898b9484cSchristos CTRL(ecr, C64XP, write, 0x1d, 0x1f)
2998b9484cSchristos CTRL(efr, C64XP, read, 0x1d, 0x1f)
3098b9484cSchristos CTRL(fadcr, C67X, read_write, 0x12, 0x1f)
3198b9484cSchristos CTRL(faucr, C67X, read_write, 0x13, 0x1f)
3298b9484cSchristos CTRL(fmcr, C67X, read_write, 0x14, 0x1f)
3398b9484cSchristos CTRL(gfpgfr, C64X, read_write, 0x18, 0x1f)
3498b9484cSchristos CTRL(gplya, C64XP, read_write, 0x16, 0x1f)
3598b9484cSchristos CTRL(gplyb, C64XP, read_write, 0x17, 0x1f)
3698b9484cSchristos CTRL(icr, C62X, write, 0x3, 0x10)
3798b9484cSchristos CTRL(ier, C62X, read_write, 0x4, 0x10)
3898b9484cSchristos CTRL(ierr, C64XP, read_write, 0x1f, 0x1f)
3998b9484cSchristos CTRL(ifr, C62X, read, 0x2, 0x1d)
4098b9484cSchristos CTRL(ilc, C64XP, read_write, 0xd, 0x1f)
4198b9484cSchristos CTRL(irp, C62X, read_write, 0x6, 0x10)
4298b9484cSchristos CTRL(isr, C62X, write, 0x2, 0x10)
4398b9484cSchristos CTRL(istp, C62X, read_write, 0x5, 0x10)
4498b9484cSchristos CTRL(itsr, C64XP, read_write, 0x1b, 0x1f)
4598b9484cSchristos CTRL(nrp, C62X, read_write, 0x7, 0x10)
4698b9484cSchristos CTRL(ntsr, C64XP, read_write, 0x1c, 0x1f)
4798b9484cSchristos CTRL(pce1, C62X, read, 0x10, 0xf)
4898b9484cSchristos CTRL(rep, C64XP, read_write, 0xf, 0x1f)
4998b9484cSchristos CTRL(rilc, C64XP, read_write, 0xe, 0x1f)
5098b9484cSchristos CTRL(ssr, C64XP, read_write, 0x15, 0x1f)
5198b9484cSchristos CTRL(tsch, C64XP, read, 0xb, 0x1f)
5298b9484cSchristos /* Contrary to Table 3-26 in SPRUFE8, this register is read-write, as
5398b9484cSchristos    documented in section 2.9.13.  */
5498b9484cSchristos CTRL(tscl, C64XP, read_write, 0xa, 0x1f)
5598b9484cSchristos CTRL(tsr, C64XP, read_write, 0x1a, 0x1f)
56