print CPU mode correctly again
This commit is contained in:
parent
203a9caf31
commit
b966703504
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: debugstuff.cc,v 1.57 2006-02-14 19:00:08 sshwarts Exp $
|
||||
// $Id: debugstuff.cc,v 1.58 2006-02-14 20:14:18 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -63,7 +63,6 @@ const char* cpu_mode_string(unsigned cpu_mode)
|
||||
{
|
||||
static const char *cpu_mode_name[] = {
|
||||
"real mode",
|
||||
"system management mode",
|
||||
"v8086 mode",
|
||||
"protected mode",
|
||||
"compatibility mode",
|
||||
@ -71,7 +70,7 @@ const char* cpu_mode_string(unsigned cpu_mode)
|
||||
"unknown mode"
|
||||
};
|
||||
|
||||
if(cpu_mode >= 6) cpu_mode = 6;
|
||||
if(cpu_mode >= 5) cpu_mode = 5;
|
||||
return cpu_mode_name[cpu_mode];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user