[Vm-dev] [commit][3441] Add a debug configuration for the bochsx64
support libs.
commits at squeakvm.org
commits at squeakvm.org
Mon Sep 21 17:48:55 UTC 2015
Revision: 3441
Author: eliot
Date: 2015-09-21 10:48:54 -0700 (Mon, 21 Sep 2015)
Log Message:
-----------
Add a debug configuration for the bochsx64 support libs.
Added Paths:
-----------
branches/Cog/build.macos32x86/bochsx64/conf.COG.dbg
Copied: branches/Cog/build.macos32x86/bochsx64/conf.COG.dbg (from rev 3438, branches/Cog/build.macos32x86/bochsx64/conf.COG)
===================================================================
--- branches/Cog/build.macos32x86/bochsx64/conf.COG.dbg (rev 0)
+++ branches/Cog/build.macos32x86/bochsx64/conf.COG.dbg 2015-09-21 17:48:54 UTC (rev 3441)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Bochs x64 simulator for the BochsX64Alien plugin.
+# this sets up the x64 compile for Cog on Mac OS X. Disable as much inessential
+# stuff as possible leaving only the cpu/fpu & memory interface
+
+# build cpu/libcpu.a disasm/libdisasm.a fpu/libfpu.a using
+# $ ./conf.COG.dbg
+# $ ../../processors/IA32/bochs/makeem
+
+set echo
+CFLAGS="-m32 $CFLAGS"
+CFLAGS="-Dlongjmp=_longjmp -Dsetjmp=_setjmp $CFLAGS"
+CFLAGS="-pipe -O0 $CFLAGS"
+CFLAGS="-g3 $CFLAGS"
+CPPFLAGS=""
+CXXFLAGS="$CFLAGS"
+
+export CFLAGS
+export CPATH
+export CPPFLAGS
+export CXXFLAGS
+export LDFLAGS
+
+../../processors/IA32/bochs/configure \
+ --enable-Cog \
+ --enable-cpu-level=6 \
+ --enable-sse=2 \
+ --enable-assert-checks \
+ --with-nogui \
+ --enable-x86-64 \
+ --enable-global-pages \
+ --disable-mtrr \
+ --disable-sb16 \
+ --disable-ne2000 \
+ --disable-pci \
+ --disable-acpi \
+ --disable-apic \
+ --disable-clgd54xx \
+ --disable-usb \
+ --disable-plugins \
+ ${CONFIGURE_ARGS}
+
+# apic == Advanced programmable Interrupt Controller
+# acpi == Advanced Configuration and Power Interface
+# pci == Peripheral Component Interconnect local bus
+# clgd54xx == Cirrus Logic GD54xx video card
+
+# avoid conflict with squeak unix build's config.h
+echo cp config.h bochsconfig.h
+cp config.h bochsconfig.h
+
+echo "and don't forget to run ../../processors/IA32/bochs/makeem"
More information about the Vm-dev
mailing list