diff options
Diffstat (limited to 'softmmu_template.h')
-rw-r--r-- | softmmu_template.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/softmmu_template.h b/softmmu_template.h index 2dad910bf6..2d3db62f68 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); |