From patchwork Wed Feb 29 22:44:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Herv=C3=A9_Poussineau?= X-Patchwork-Id: 143828 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AA1F9B6F62 for ; Thu, 1 Mar 2012 09:45:12 +1100 (EST) Received: from localhost ([::1]:42672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2sGj-0005AC-Lm for incoming@patchwork.ozlabs.org; Wed, 29 Feb 2012 17:45:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2sGc-00058F-Qj for qemu-devel@nongnu.org; Wed, 29 Feb 2012 17:45:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2sGa-0007xA-Vc for qemu-devel@nongnu.org; Wed, 29 Feb 2012 17:45:02 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:43338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2sGa-0007qx-D3; Wed, 29 Feb 2012 17:45:00 -0500 Received: from localhost.localdomain (unknown [82.227.227.196]) by smtp1-g21.free.fr (Postfix) with ESMTP id 8D2A7940096; Wed, 29 Feb 2012 23:44:46 +0100 (CET) From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= To: qemu-devel@nongnu.org Date: Wed, 29 Feb 2012 23:44:58 +0100 Message-Id: <1330555499-11726-1-git-send-email-hpoussin@reactos.org> X-Mailer: git-send-email 1.7.9 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.27.42.1 Cc: qemu-trivial@nongnu.org, Anthony Liguori , =?UTF-8?q?Herv=C3=A9=20Poussineau?= Subject: [Qemu-devel] [PATCH] pc: make user-triggerable exit conditional to DEBUG_BIOS define X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The port 0x501 is (at least) used by SCO Xenix 2.3.4 installer. Signed-off-by: Hervé Poussineau --- hw/pc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 12c02f2..113a38a 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -565,7 +565,10 @@ static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) /* LGPL'ed VGA BIOS messages */ case 0x501: case 0x502: +#ifdef DEBUG_BIOS exit((val << 1) | 1); +#endif + break; case 0x500: case 0x503: #ifdef DEBUG_BIOS