]> git.proxmox.com Git - mirror_qemu.git/blobdiff - softmmu_template.h
Don't compare '\0' against pointers.
[mirror_qemu.git] / softmmu_template.h
index a0a2c38ab68a1ed8c92d8c6b688421625bfdf162..45fcd4e1b6c6082e2a4c8a5b09dcdf4e4e384327 100644 (file)
@@ -282,6 +282,8 @@ static void glue(glue(slow_st, SUFFIX), MMUSUFFIX)(target_ulong addr,
         } else if (((addr & ~TARGET_PAGE_MASK) + DATA_SIZE - 1) >= TARGET_PAGE_SIZE) {
         do_unaligned_access:
             /* XXX: not efficient, but simple */
+            /* Note: relies on the fact that tlb_fill() does not remove the
+             * previous page from the TLB cache.  */
             for(i = DATA_SIZE - 1; i >= 0; i--) {
 #ifdef TARGET_WORDS_BIGENDIAN
                 glue(slow_stb, MMUSUFFIX)(addr + i, val >> (((DATA_SIZE - 1) * 8) - (i * 8)),