changeset b5e6461ea242 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=b5e6461ea242
description:
X86: Detect attempts to load a 32 bit kernel and panic.
diffstat:
src/arch/x86/system.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 90299d921559 -r b5e6461ea242 src/arch/x86/system.cc
--- a/src/arch/x86/system.cc Sun Oct 10 20:38:05 2010 -0700
+++ b/src/arch/x86/system.cc Sun Oct 10 20:39:26 2010 -0700
@@ -60,7 +60,10 @@
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,
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev