diff options
author | M R Swami Reddy <MR.Swami.Reddy@nsc.com> | 2008-05-05 09:24:26 +0000 |
---|---|---|
committer | M R Swami Reddy <MR.Swami.Reddy@nsc.com> | 2008-05-05 09:24:26 +0000 |
commit | 8e26b0f4b5cfba19a642ba6c919bcba8ac68a6c6 (patch) | |
tree | 9da5d2ebfac8397acdcb819f2cc840f421657ed8 /sim/cr16 | |
parent | 5da6971689202eb905ccaf894f2e9ca479263b28 (diff) | |
download | gdb-8e26b0f4b5cfba19a642ba6c919bcba8ac68a6c6.zip gdb-8e26b0f4b5cfba19a642ba6c919bcba8ac68a6c6.tar.gz gdb-8e26b0f4b5cfba19a642ba6c919bcba8ac68a6c6.tar.bz2 |
Update simops struct members and PSR bits.
Diffstat (limited to 'sim/cr16')
-rw-r--r-- | sim/cr16/cr16_sim.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sim/cr16/cr16_sim.h b/sim/cr16/cr16_sim.h index 19922f6..289fe33 100644 --- a/sim/cr16/cr16_sim.h +++ b/sim/cr16/cr16_sim.h @@ -14,8 +14,9 @@ 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 <http://www.gnu.org/licenses/>. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + #include "config.h" #include <stdio.h> @@ -59,15 +60,15 @@ typedef uint32 creg_t; struct simops { - char mnimonic[6]; - int size; // size - long mask; - long opcode; + char mnimonic[12]; + uint32 size; + uint32 mask; + uint32 opcode; int format; - char fname[10]; + char fname[12]; void (*func)(); int numops; - int operands[4]; + operand_desc operands[4]; }; enum _ins_type @@ -309,13 +310,13 @@ enum PSR_I_BIT = 0x0800, PSR_P_BIT = 0x0400, PSR_E_BIT = 0x0200, - PSR_N_BIT = 0x0100, + PSR_N_BIT = 0x0080, PSR_Z_BIT = 0x0040, PSR_F_BIT = 0x0020, - PSR_U_BIT = 0x0010, + PSR_U_BIT = 0x0008, PSR_L_BIT = 0x0004, PSR_T_BIT = 0x0002, - PSR_C_BIT = 0x0001, + PSR_C_BIT = 0x0001 }; #define PSR CREG (PSR_CR) |