Index: sim/sh/interp.c |
diff --git a/sim/sh/interp.c b/sim/sh/interp.c |
index 20239def614b53b879765b022490298f976e8593..e9313c76cbd5a2912ae3554c904a7d51658fa9b0 100644 |
--- a/sim/sh/interp.c |
+++ b/sim/sh/interp.c |
@@ -862,7 +862,7 @@ do { \ |
#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++; |
@@ -2356,7 +2356,7 @@ sim_store_register (sd, rn, memory, length) |
default: |
return 0; |
} |
- return -1; |
+ return length; |
} |
int |
@@ -2531,7 +2531,7 @@ sim_fetch_register (sd, rn, memory, length) |
return 0; |
} |
* (int *) memory = swap (val); |
- return -1; |
+ return length; |
} |
int |