]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Allow detected CPU clock rates down to 50 MHz -- slower than the slowest
authorJulian Seward <jseward@acm.org>
Thu, 13 Jun 2002 11:37:41 +0000 (11:37 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 13 Jun 2002 11:37:41 +0000 (11:37 +0000)
Pentium, which is the oldest processor supported.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@411

coregrind/vg_mylibc.c
vg_mylibc.c

index 15af77027d9892674be87b38ee8504ea35cb518e..4a302a8ee4e75d74d98417be5beca4f7f4edcbcc 100644 (file)
@@ -1229,9 +1229,9 @@ void VG_(end_rdtsc_calibration) ( void )
    if (VG_(clo_verbosity) >= 1)
       VG_(message)(Vg_UserMsg, "Estimated CPU clock rate is %d MHz",
                                (UInt)cpu_clock_MHZ);
-   if (cpu_clock_MHZ < 100 || cpu_clock_MHZ > 10000)
+   if (cpu_clock_MHZ < 50 || cpu_clock_MHZ > 10000)
       VG_(panic)("end_rdtsc_calibration: "
-                 "estimated CPU MHz outside range 100 .. 10000");
+                 "estimated CPU MHz outside range 50 .. 10000");
    /* Paranoia about division by zero later. */
    vg_assert(rdtsc_ticks_per_millisecond != 0);
    if (0)
index 15af77027d9892674be87b38ee8504ea35cb518e..4a302a8ee4e75d74d98417be5beca4f7f4edcbcc 100644 (file)
@@ -1229,9 +1229,9 @@ void VG_(end_rdtsc_calibration) ( void )
    if (VG_(clo_verbosity) >= 1)
       VG_(message)(Vg_UserMsg, "Estimated CPU clock rate is %d MHz",
                                (UInt)cpu_clock_MHZ);
-   if (cpu_clock_MHZ < 100 || cpu_clock_MHZ > 10000)
+   if (cpu_clock_MHZ < 50 || cpu_clock_MHZ > 10000)
       VG_(panic)("end_rdtsc_calibration: "
-                 "estimated CPU MHz outside range 100 .. 10000");
+                 "estimated CPU MHz outside range 50 .. 10000");
    /* Paranoia about division by zero later. */
    vg_assert(rdtsc_ticks_per_millisecond != 0);
    if (0)