]> Devi Nivas Git - cs3210-lab1.git/commitdiff
Add support for qemu-system-x86_64 in 64bit hosts
authorAntonio Gutierrez <chibby0ne@gmail.com>
Fri, 2 Dec 2016 19:17:54 +0000 (20:17 +0100)
committerFrans Kaashoek <kaashoek@mit.edu>
Tue, 31 Jan 2017 01:03:45 +0000 (20:03 -0500)
As x86-64 is a superset of x86, we can use qemu-system-x86_64 to run
the OS image.

Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
Makefile

index 93d525afc6d433f46c23bd86daa82198d61f2f3c..dd2afb8cadad7009142d16478f23858dd8f69fd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,8 @@ QEMU = $(shell if which qemu > /dev/null; \
        then echo qemu; exit; \
        elif which qemu-system-i386 > /dev/null; \
        then echo qemu-system-i386; exit; \
+       elif which qemu-system-x86_64 > /dev/null; \
+       then echo qemu-system-x86_64; exit; \
        else \
        qemu=/Applications/Q.app/Contents/MacOS/i386-softmmu.app/Contents/MacOS/i386-softmmu; \
        if test -x $$qemu; then echo $$qemu; exit; fi; fi; \