Skip to content

Commit

Permalink
Starting work on multi-cpu support.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Mar 31, 2017
1 parent 2f815c1 commit 7108c3c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions scripts/build-qemu.sh
Expand Up @@ -48,6 +48,20 @@ fi
TARGET_BUILD_DIR=$(realpath build)/${PLATFORM}_${TARGET}_${CPU}/
TARGET_QEMU_BUILD_DIR=$TARGET_BUILD_DIR/qemu

case $CPU in
lm32)
QEMU_CPU=lm32
;;
or1k)
QEMU_CPU=or32
;;
*)
echo "CPU $CPU isn't supported at the moment."
exit 1
;;
esac
QEMU_ARCH=$QEMU_CPU-softmmu

if [ ! -d $TARGET_BUILD_DIR/software/include/generated ]; then
make firmware
fi
Expand All @@ -57,7 +71,7 @@ if [ ! -f "$TARGET_QEMU_BUILD_DIR/Makefile" ]; then
(
cd $TARGET_QEMU_BUILD_DIR
$QEMU_SRC_DIR/configure \
--target-list=$CPU-softmmu \
--target-list=$QEMU_ARCH \
--python=/usr/bin/python2 \
--enable-fdt \
--disable-kvm \
Expand Down Expand Up @@ -94,7 +108,7 @@ if [ $HAS_LITEETH -eq 1 ]; then
make tftp
fi

$TARGET_QEMU_BUILD_DIR/$CPU-softmmu/qemu-system-$CPU \
$TARGET_QEMU_BUILD_DIR/$QEMU_ARCH/qemu-system-$QEMU_CPU \
-M litex \
-nographic -nodefaults \
-monitor pty \
Expand Down

0 comments on commit 7108c3c

Please sign in to comment.