Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Unified Diff: sim/sh/interp.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sim/sh/configure ('k') | sim/sh64/ChangeLog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sim/sh/configure ('k') | sim/sh64/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698