From d0fefc14a28e3563a25459d2f369a9ef270df7c5 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Apr 27 2008 09:20:07 +0000 Subject: - Register binary handler for SuperH-4 CPU --- diff --git a/qemu.init b/qemu.init index 6716f1d..b969219 100755 --- a/qemu.init +++ b/qemu.init @@ -23,6 +23,9 @@ start() { armv4l|armv5l) cpu="arm" ;; + sh4) + cpu="sh4" + ;; esac echo -n $"Registering binary handler for qemu applications" @@ -41,12 +44,15 @@ start() { if [ "$cpu" != sparc -a -x $QEMU/qemu-sparc -a -d /usr/qemu-sparc ] ; then echo ":qemu-sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:$QEMU/qemu-sparc:" > /proc/sys/fs/binfmt_misc/register fi + if [ "$cpu" != sh4 -a -x $QEMU/qemu-sh4 -a -d /usr/qemu-sh4 ] ; then + echo ":qemu-sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:$QEMU/qemu-sh4:" > /proc/sys/fs/binfmt_misc/register + fi echo } stop() { echo -n $"Unregistering binary handler for qemu applications" - for a in i386 i486 ppc arm sparc ] ; do + for a in i386 i486 ppc arm sparc sh4 ] ; do [ -r /proc/sys/fs/binfmt_misc/qemu-$a ] && echo "-1" >/proc/sys/fs/binfmt_misc/qemu-$a done echo diff --git a/qemu.spec b/qemu.spec index 2a8f33c..d28740f 100644 --- a/qemu.spec +++ b/qemu.spec @@ -8,7 +8,7 @@ Summary: QEMU is a FAST! processor emulator Name: qemu Version: 0.9.1 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ and LGPLv2+ Group: Development/Tools URL: http://www.qemu.org/ @@ -125,6 +125,9 @@ fi %{_mandir}/man1/qemu-img.1* %changelog +* Sun Apr 27 2008 Lubomir Kundrak - 0.9.1-6 +- Register binary handler for SuperH-4 CPU + * Wed Mar 19 2008 Daniel P. Berrange - 0.9.1-5.fc9 - Split qemu-img tool into sub-package for smaller footprint installs