summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-01-21 15:07:18 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2008-01-21 15:07:18 +0000
commitf220f4e3d84c73a01f9ea3f47b372172dbc6d513 (patch)
tree575dea064d853e3424b6f97d4ad178edd4874292 /softmmu_header.h
parentChange the usb-serial product ID to a more widely recognised value (Samuel Th... (diff)
downloadqemu-kvm-f220f4e3d84c73a01f9ea3f47b372172dbc6d513.tar.gz
qemu-kvm-f220f4e3d84c73a01f9ea3f47b372172dbc6d513.tar.bz2
qemu-kvm-f220f4e3d84c73a01f9ea3f47b372172dbc6d513.zip
fixed register constraint
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3928 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'softmmu_header.h')
-rw-r--r--softmmu_header.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/softmmu_header.h b/softmmu_header.h
index 80eefa80f..fbf22b160 100644
--- a/softmmu_header.h
+++ b/softmmu_header.h
@@ -207,9 +207,11 @@ static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE
"2:\n"
:
: "r" (ptr),
-/* NOTE: 'q' would be needed as constraint, but we could not use it
- with T1 ! */
+#if DATA_SIZE == 1
+ "q" (v),
+#else
"r" (v),
+#endif
"i" ((CPU_TLB_SIZE - 1) << CPU_TLB_ENTRY_BITS),
"i" (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS),
"i" (TARGET_PAGE_MASK | (DATA_SIZE - 1)),