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

« back to all changes in this revision

Viewing changes to sim/common/cgen-ops.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:
1
1
/* Semantics ops support for CGEN-based simulators.
2
 
   Copyright (C) 1996, 1997, 1998, 1999, 2002, 2007, 2008, 2009
 
2
   Copyright (C) 1996, 1997, 1998, 1999, 2002, 2007, 2008, 2009, 2010
3
3
   Free Software Foundation, Inc.
4
4
   Contributed by Cygnus Solutions.
5
5
 
404
404
  /* Note: typedef struct { SI parts[3]; } XF; */
405
405
  union { XF in; SI out[3]; } x;
406
406
  x.in = in;
407
 
  return x.out[word];
 
407
  if (CURRENT_TARGET_BYTE_ORDER == BIG_ENDIAN)
 
408
    return x.out[word];
 
409
  else
 
410
    return x.out[2 - word];
408
411
}
409
412
 
410
413
SEMOPS_INLINE SI
413
416
  /* Note: typedef struct { SI parts[4]; } TF; */
414
417
  union { TF in; SI out[4]; } x;
415
418
  x.in = in;
416
 
  return x.out[word];
 
419
  if (CURRENT_TARGET_BYTE_ORDER == BIG_ENDIAN)
 
420
    return x.out[word];
 
421
  else
 
422
    return x.out[3 - word];
417
423
}
418
424
 
419
425
SEMOPS_INLINE DI
420
426
JOINSIDI (SI x0, SI x1)
421
427
{
422
 
  if (CURRENT_TARGET_BYTE_ORDER == BIG_ENDIAN)
423
 
    return MAKEDI (x0, x1);
424
 
  else
425
 
    return MAKEDI (x1, x0);
 
428
  return MAKEDI (x0, x1);
426
429
}
427
430
 
428
431
SEMOPS_INLINE DF