summaryrefslogtreecommitdiff
path: root/src/arch/x86/system.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-10-10 20:39:26 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-10-10 20:39:26 -0700
commitb273e0be33049fc36b386b5ba183f69de53268c2 (patch)
treec87c520124233f7ee627010981c7390e24f50589 /src/arch/x86/system.cc
parent157d6f9c2fb203dd95fe53c3481e851ea55272ef (diff)
downloadgem5-b273e0be33049fc36b386b5ba183f69de53268c2.tar.xz
X86: Detect attempts to load a 32 bit kernel and panic.
Diffstat (limited to 'src/arch/x86/system.cc')
-rw-r--r--src/arch/x86/system.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/x86/system.cc b/src/arch/x86/system.cc
index f12d6e424..ae47b14fd 100644
--- a/src/arch/x86/system.cc
+++ b/src/arch/x86/system.cc
@@ -60,7 +60,10 @@ X86System::X86System(Params *p) :
mpFloatingPointer(p->intel_mp_pointer),
mpConfigTable(p->intel_mp_table),
rsdp(p->acpi_description_table_pointer)
-{}
+{
+ if (kernel->getArch() == ObjectFile::I386)
+ fatal("Loading a 32 bit x86 kernel is not supported.\n");
+}
static void
installSegDesc(ThreadContext *tc, SegmentRegIndex seg,