aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-18 21:53:18 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-18 21:53:18 +0000
commit6986f88c3f9694752b254f5d7ac92d7e6def635a (patch)
tree64c81248736a549026f050aaec1de9ee1e49e4db /softmmu_template.h
parentfixed tlb invalidation (diff)
downloadqemu-kvm-6986f88c3f9694752b254f5d7ac92d7e6def635a.tar.gz
qemu-kvm-6986f88c3f9694752b254f5d7ac92d7e6def635a.tar.bz2
qemu-kvm-6986f88c3f9694752b254f5d7ac92d7e6def635a.zip
cast to return type
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@556 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'softmmu_template.h')
-rw-r--r--softmmu_template.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/softmmu_template.h b/softmmu_template.h
index 2dad910bf..2d3db62f6 100644
--- a/softmmu_template.h
+++ b/softmmu_template.h
@@ -162,6 +162,7 @@ static DATA_TYPE glue(glue(slow_ld, SUFFIX), MMUSUFFIX)(unsigned long addr,
#else
res = (res1 >> shift) | (res2 << ((DATA_SIZE * 8) - shift));
#endif
+ res = (DATA_TYPE)res;
} else {
/* unaligned/aligned access in the same page */
res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr);