Fix compile warnings for sh built on 64-bit hosts.
+2012-02-16 Kevin Buettner <kevinb@redhat.com>
+
+ * interp.c (sim_fetch_register): Return length, not -1.
+
2012-01-02 Joel Brobecker <brobecker@adacore.com>
* sim-main.h: Reformat copyright header.
int length)
{
put_word (memory, State.regs[rn]);
- return -1;
+ return length;
}
int
+2012-02-16 Kevin Buettner <kevinb@redhat.com>
+
+ * interp.c (MA): Adjust cast to avoid warning on 64-bit hosts.
+
+ * interp.c (sim_store_register, sim_fetch_register): Return
+ length, not -1.
+
2011-12-03 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4: New file.
#else
#define MA(n) \
- do { memstalls += ((((int) PC & 3) != 0) ? (n) : ((n) - 1)); } while (0)
+ do { memstalls += ((((long) PC & 3) != 0) ? (n) : ((n) - 1)); } while (0)
#define L(x) thislock = x;
#define TL(x) if ((x) == prevlock) stalls++;
default:
return 0;
}
- return -1;
+ return length;
}
int
return 0;
}
* (int *) memory = swap (val);
- return -1;
+ return length;
}
int