]> git.proxmox.com Git - qemu.git/blobdiff - softmmu_header.h
fixed register constraint
[qemu.git] / softmmu_header.h
index 80eefa80fa5c0b4049909dbde116747cd3fc4861..fbf22b160364c59b0b71c10b0e741e48fb5f7035 100644 (file)
@@ -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)),