/* reg.c --- register set model for RX simulator.
- Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
{
memset (®s, 0, sizeof (regs));
memset (&oldregs, 0, sizeof (oldregs));
+
+#ifdef CYCLE_ACCURATE
+ regs.rt = -1;
+ oldregs.rt = -1;
+#endif
}
static unsigned int
void
set_oszc (long long value, int b, int c)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if (c)
void
set_szc (long long value, int b, int c)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if (c)
void
set_osz (long long value, int b)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if ((value & mask) == 0)
void
set_sz (long long value, int b)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if ((value & mask) == 0)