cast to return type
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@556 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
988578886e
commit
6986f88c3f
@ -162,6 +162,7 @@ static DATA_TYPE glue(glue(slow_ld, SUFFIX), MMUSUFFIX)(unsigned long addr,
|
|||||||
#else
|
#else
|
||||||
res = (res1 >> shift) | (res2 << ((DATA_SIZE * 8) - shift));
|
res = (res1 >> shift) | (res2 << ((DATA_SIZE * 8) - shift));
|
||||||
#endif
|
#endif
|
||||||
|
res = (DATA_TYPE)res;
|
||||||
} else {
|
} else {
|
||||||
/* unaligned/aligned access in the same page */
|
/* unaligned/aligned access in the same page */
|
||||||
res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr);
|
res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr);
|
||||||
|
Loading…
Reference in New Issue
Block a user