~ubuntu-branches/debian/sid/gdb/sid

« back to all changes in this revision

Viewing changes to sim/sh64/defs-compact.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
THIS FILE IS MACHINE GENERATED WITH CGEN.
4
4
 
5
 
Copyright 1996-2005 Free Software Foundation, Inc.
 
5
Copyright 1996-2010 Free Software Foundation, Inc.
6
6
 
7
7
This file is part of the GNU simulators.
8
8
 
9
 
This program is free software; you can redistribute it and/or modify
10
 
it under the terms of the GNU General Public License as published by
11
 
the Free Software Foundation; either version 3 of the License, or
12
 
(at your option) any later version.
13
 
 
14
 
This program is distributed in the hope that it will be useful,
15
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
GNU General Public License for more details.
18
 
 
19
 
You should have received a copy of the GNU General Public License
20
 
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
9
   This file is free software; you can redistribute it and/or modify
 
10
   it under the terms of the GNU General Public License as published by
 
11
   the Free Software Foundation; either version 3, or (at your option)
 
12
   any later version.
 
13
 
 
14
   It is distributed in the hope that it will be useful, but WITHOUT
 
15
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
16
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
 
17
   License for more details.
 
18
 
 
19
   You should have received a copy of the GNU General Public License along
 
20
   with this program; if not, write to the Free Software Foundation, Inc.,
 
21
   51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
21
22
 
22
23
*/
23
24
 
29
30
union sem_fields {
30
31
  struct { /* no operands */
31
32
    int empty;
32
 
  } fmt_empty;
 
33
  } sfmt_empty;
33
34
  struct { /*  */
34
35
    IADDR i_disp12;
35
36
  } sfmt_bra_compact;
206
207
#define EXTRACT_IFMT_BF_COMPACT_CODE \
207
208
  length = 2; \
208
209
  f_op8 = EXTRACT_MSB0_UINT (insn, 16, 0, 8); \
209
 
  f_disp8 = ((((EXTRACT_MSB0_INT (insn, 16, 8, 8)) << (1))) + (((pc) + (4)))); \
 
210
  f_disp8 = ((((EXTRACT_MSB0_SINT (insn, 16, 8, 8)) << (1))) + (((pc) + (4)))); \
210
211
 
211
212
#define EXTRACT_IFMT_BRA_COMPACT_VARS \
212
213
  UINT f_op4; \
215
216
#define EXTRACT_IFMT_BRA_COMPACT_CODE \
216
217
  length = 2; \
217
218
  f_op4 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
218
 
  f_disp12 = ((((EXTRACT_MSB0_INT (insn, 16, 4, 12)) << (1))) + (((pc) + (4)))); \
 
219
  f_disp12 = ((((EXTRACT_MSB0_SINT (insn, 16, 4, 12)) << (1))) + (((pc) + (4)))); \
219
220
 
220
221
#define EXTRACT_IFMT_BRAF_COMPACT_VARS \
221
222
  UINT f_op4; \
365
366
  f_rm = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
366
367
  f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
367
368
  f_16_4 = EXTRACT_MSB0_UINT (insn, 32, 16, 4); \
368
 
  f_imm12x8 = ((EXTRACT_MSB0_INT (insn, 32, 20, 12)) << (3)); \
 
369
  f_imm12x8 = ((EXTRACT_MSB0_SINT (insn, 32, 20, 12)) << (3)); \
369
370
 
370
371
#define EXTRACT_IFMT_FMOV9_COMPACT_VARS \
371
372
  UINT f_op4; \
384
385
  f_11_1 = EXTRACT_MSB0_UINT (insn, 32, 11, 1); \
385
386
  f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
386
387
  f_16_4 = EXTRACT_MSB0_UINT (insn, 32, 16, 4); \
387
 
  f_imm12x8 = ((EXTRACT_MSB0_INT (insn, 32, 20, 12)) << (3)); \
 
388
  f_imm12x8 = ((EXTRACT_MSB0_SINT (insn, 32, 20, 12)) << (3)); \
388
389
 
389
390
#define EXTRACT_IFMT_FTRV_COMPACT_VARS \
390
391
  UINT f_op4; \
409
410
  length = 4; \
410
411
  f_op4 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
411
412
  f_rn = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
412
 
  f_imm20_hi = EXTRACT_MSB0_INT (insn, 32, 8, 4); \
 
413
  f_imm20_hi = EXTRACT_MSB0_SINT (insn, 32, 8, 4); \
413
414
  f_imm20_lo = EXTRACT_MSB0_UINT (insn, 32, 16, 16); \
414
415
  f_imm20 = ((((f_imm20_hi) << (16))) | (f_imm20_lo));\
415
416
  f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
473
474
  f_rm = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
474
475
  f_sub4 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
475
476
  f_16_4 = EXTRACT_MSB0_UINT (insn, 32, 16, 4); \
476
 
  f_imm12x4 = ((EXTRACT_MSB0_INT (insn, 32, 20, 12)) << (2)); \
 
477
  f_imm12x4 = ((EXTRACT_MSB0_SINT (insn, 32, 20, 12)) << (2)); \
477
478
 
478
479
#define EXTRACT_IFMT_MOVW4_COMPACT_VARS \
479
480
  UINT f_op8; \