From: Gabe Black Date: Mon, 11 Oct 2010 03:39:26 +0000 (-0700) Subject: X86: Detect attempts to load a 32 bit kernel and panic. X-Git-Tag: stable_2012_02_02~791 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b273e0be33049fc36b386b5ba183f69de53268c2;p=gem5.git X86: Detect attempts to load a 32 bit kernel and panic. --- 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,