Update sim_fetch_register, sim_store_register for sh and mn10300.
Fix compile warnings for sh built on 64-bit hosts.
This commit is contained in:
parent
7dcd53a074
commit
f95586a44d
4 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
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.
|
||||
|
|
|
@ -383,7 +383,7 @@ sim_fetch_register (SIM_DESC sd,
|
|||
int length)
|
||||
{
|
||||
put_word (memory, State.regs[rn]);
|
||||
return -1;
|
||||
return length;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue