X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=sim%2Fcommon%2Fsim-types.h;h=d7ba5c417d77e9ad1b4f7150a98678d3a776e487;hb=2a8a6bf5cefda15f0e9b437c151c695cd0b25537;hp=babc59814b04d71467d58795cbcce845f02c7150;hpb=72ec28b8afa357cdde70c612b4e0e9f37a34f8e4;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/sim-types.h b/sim/common/sim-types.h index babc59814b..d7ba5c417d 100644 --- a/sim/common/sim-types.h +++ b/sim/common/sim-types.h @@ -1,24 +1,23 @@ -/* This file is part of psim (model of the PowerPC(tm) architecture) +/* The common simulator framework for GDB, the GNU Debugger. - Copyright (C) 1994-1997, Andrew Cagney + Copyright 2002, 2005, 2007, 2008 Free Software Foundation, Inc. - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License - as published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -- + Contributed by Andrew Cagney and Red Hat. - PowerPC is a trademark of International Business Machines Corporation. */ + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #ifndef SIM_TYPES_H @@ -111,11 +110,11 @@ typedef struct { signed64 a[2]; } signed128; typedef signed char signed8; typedef signed short signed16; #if defined (__ALPHA__) -typedef signed int unsigned32; -typedef signed long unsigned64; +typedef signed int signed32; +typedef signed long signed64; #else -typedef signed long unsigned32; -typedef signed long long unsigned64; +typedef signed long signed32; +typedef signed long long signed64; #endif typedef unsigned char unsigned8; @@ -164,6 +163,10 @@ typedef signed64 signed_word; typedef unsigned32 unsigned_word; typedef signed32 signed_word; #endif +#if (WITH_TARGET_WORD_BITSIZE == 16) +typedef unsigned16 unsigned_word; +typedef signed16 signed_word; +#endif /* Other instructions */ @@ -175,6 +178,10 @@ typedef signed64 signed_address; typedef unsigned32 unsigned_address; typedef signed32 signed_address; #endif +#if (WITH_TARGET_ADDRESS_BITSIZE == 16) +typedef unsigned16 unsigned_address; +typedef signed16 signed_address; +#endif typedef unsigned_address address_word;