From patchwork Mon Oct 8 20:45:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 190120 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 21D192C0326 for ; Tue, 9 Oct 2012 07:46:10 +1100 (EST) Received: from localhost ([::1]:48519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLKDI-0007fa-R3 for incoming@patchwork.ozlabs.org; Mon, 08 Oct 2012 16:46:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLKDB-0007fK-Mj for qemu-devel@nongnu.org; Mon, 08 Oct 2012 16:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLKDA-0007OF-PX for qemu-devel@nongnu.org; Mon, 08 Oct 2012 16:46:01 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:45967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLKDA-0007OA-KP for qemu-devel@nongnu.org; Mon, 08 Oct 2012 16:46:00 -0400 Received: by mail-ie0-f173.google.com with SMTP id 17so1433778iea.4 for ; Mon, 08 Oct 2012 13:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=udLYBcX4ERSaip+f/dmL8QOGvPRE1JkUwqK3jRGxZjo=; b=NJ9YleGiRDnWC/LLjYb9MJc/nX5hJD8qwY8cSCQcmgRgWy1aGZUZXkV30TdsCDYKTL uJijthhMZtqaG/cttWJHPkW/RnXHX5MOOjGlxaI/or02d0EthHSQf0FoWok+vF/EoGoP UuJfHGGMQoVwRHuR/C8EWOvCYShizt89X8f1rSpCOF2ZTgG4zlw0f0YLAaq/t37T4tAu Rm3fQaY+xPB6qytatt4s5NhKY+/G8eGEphRIJGi/v7rHnDMl2VPydusLULl4B2G95APR y5coS3cGjotSZpu3vMtekht2fkSfUn0gr+pWmuu8WE58xeeNUMoVPiIEto7ynZUifo4P DpVw== Received: by 10.42.35.82 with SMTP id p18mr13881471icd.15.1349729159694; Mon, 08 Oct 2012 13:45:59 -0700 (PDT) Received: from loki.austin.ibm.com ([32.97.110.59]) by mx.google.com with ESMTPS id pp3sm8268836igb.8.2012.10.08.13.45.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Oct 2012 13:45:59 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Mon, 8 Oct 2012 15:45:49 -0500 Message-Id: <1349729149-6481-1-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.223.173 Cc: blauwirbel@gmail.com, rth@twiddle.net Subject: [Qemu-devel] [PATCH] tci: fix build breakage for target-sparc 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 commit c28ae41 introduced GETPC() usage for sparc, which is currently not defined when building with --enable-tcg-interpreter. Add sparc to the list of targets we selectively define GETPC() for. Signed-off-by: Michael Roth Reviewed-by: Stefan Weil --- exec-all.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec-all.h b/exec-all.h index 6516da0..f7f649e 100644 --- a/exec-all.h +++ b/exec-all.h @@ -296,7 +296,8 @@ extern int tb_invalidated_flag; #if defined(CONFIG_TCG_INTERPRETER) /* Alpha and SH4 user mode emulations and Softmmu call GETPC(). For all others, GETPC remains undefined (which makes TCI a little faster. */ -# if defined(CONFIG_SOFTMMU) || defined(TARGET_ALPHA) || defined(TARGET_SH4) +# if defined(CONFIG_SOFTMMU) || defined(TARGET_ALPHA) || defined(TARGET_SH4) \ + || defined(TARGET_SPARC) extern uintptr_t tci_tb_ptr; # define GETPC() tci_tb_ptr # endif