cachegrinding it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5119
aspacem_minAddr = (Addr) 0x04000000; // 64M
# if VG_WORDSIZE == 8
- aspacem_maxAddr = (Addr)0x800000000 - 1; // 32G
+ aspacem_maxAddr = (Addr)0x800000000 - 1; // 32G
+# ifdef ENABLE_INNER
+ aspacem_maxAddr = VG_PGROUNDDN( sp_at_startup ) - 1;
+# endif
# else
- aspacem_maxAddr = VG_PGROUNDDN( sp_at_startup ) - 1;
+ aspacem_maxAddr = VG_PGROUNDDN( sp_at_startup ) - 1;
# endif
aspacem_cStart = aspacem_minAddr; // 64M
/* We're leaving. Check that nobody messed with
%mxcsr or %fpucw. We can't mess with %rax here as it
holds the tentative return value, but any other is OK. */
+#if !defined(ENABLE_INNER)
+ /* This check fails for self-hosting, so skip in that case */
pushq $0
fstcw (%rsp)
cmpl $0x027F, (%rsp)
popq %r11 /* get rid of the word without trashing %eflags */
jnz invariant_violation
+#endif
pushq $0
stmxcsr (%rsp)
andl $0xFFFFFFC0, (%rsp) /* mask out status flags */