[arch][m68k] initial port to m68k

Uses the QEMU virt machine for 68k defined in qemu 6.0+.
Basic support that boots, prints to the console, takes input from
console, and context switches.

TODO: interrupt support, timer support.
This commit is contained in:
Travis Geiselbrecht
2021-06-06 19:38:45 -07:00
parent 893b894dd5
commit 12fee4b59a
23 changed files with 1162 additions and 0 deletions

11
scripts/do-qemum68k Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -e
set -x
PROJECT=qemu-virt-m68k-test
$DIR/make-parallel $PROJECT
qemu-system-m68k -machine virt -cpu m68040 -kernel build-${PROJECT}/lk.elf -nographic $@