aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-17 12:12:29 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-17 12:12:29 +0000
commit6c41b2723f5cac6e62e68925e7a73f30b11a7a06 (patch)
treee0cb44e39d70f6fbd706d1e41d1e670ba38c32a6 /softmmu_template.h
parentFix collision in PowerPC instructions definitions. (diff)
downloadqemu-kvm-6c41b2723f5cac6e62e68925e7a73f30b11a7a06.tar.gz
qemu-kvm-6c41b2723f5cac6e62e68925e7a73f30b11a7a06.tar.bz2
qemu-kvm-6c41b2723f5cac6e62e68925e7a73f30b11a7a06.zip
Don't compare '\0' against pointers.
Add a note from Fabrice in slow_st template. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3669 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'softmmu_template.h')
-rw-r--r--softmmu_template.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/softmmu_template.h b/softmmu_template.h
index a0a2c38ab..45fcd4e1b 100644
--- a/softmmu_template.h
+++ b/softmmu_template.h
@@ -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)),