changeset 3476c436d248 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=3476c436d248
description:
        X86 CPUID: Return false if unknown processor family

diffstat:

 src/arch/x86/cpuid.cc |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 281b3ac0e0a1 -r 3476c436d248 src/arch/x86/cpuid.cc
--- a/src/arch/x86/cpuid.cc     Sat Jul 21 17:24:01 2012 -0400
+++ b/src/arch/x86/cpuid.cc     Sun Jul 22 20:31:23 2012 -0500
@@ -135,6 +135,7 @@
               case TLB1GBPageInfo:
               case PerformanceInfo:*/
               default:
+                warn("x86 cpuid: unimplemented function %u", funcNum);
                 return false;
             }
         } else if(family == 0x0000) {
@@ -153,9 +154,14 @@
                                      0xe7d3fbff, 0x00000001);
                 break;
               default:
+                warn("x86 cpuid: unimplemented function %u", funcNum);
                 return false;
             }
+        } else {
+            warn("x86 cpuid: unknown family %#x", family);
+            return false;
         }
+
         return true;
     }
 } // namespace X86ISA
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to