From patchwork Sat May 28 10:08:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 97780 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4F3AFB6F92 for ; Sat, 28 May 2011 20:08:57 +1000 (EST) Received: from localhost ([::1]:42263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQGRy-0000ce-AP for incoming@patchwork.ozlabs.org; Sat, 28 May 2011 06:08:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQGRW-0000Z3-7N for qemu-devel@nongnu.org; Sat, 28 May 2011 06:08:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQGRV-0005cH-CA for qemu-devel@nongnu.org; Sat, 28 May 2011 06:08:26 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:48003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQGRV-0005cD-9m for qemu-devel@nongnu.org; Sat, 28 May 2011 06:08:25 -0400 Received: by qyk10 with SMTP id 10so1571630qyk.4 for ; Sat, 28 May 2011 03:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=SY0NyG9pKFInETUD2sf3ozYAq89tQjwLNILHoTFVP9I=; b=Xuu2njWrEE9E/HzkLMcnzRCj4rkZMX1U/IY1WzKwXX1GIHaMVv2ZGUUmeUiECElzJN 108zpjc6w5aGqF595UtF4CqwcpAnGKuhpk3C5JrWskNQN7qOrxAbkP7sAm2NQ2HE368Q UqE00JxLioIaQBEL8NFOap0eKTuRY/uacGdI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=drP6LlnbmQrjlGI208XEJvAERtgPKZM10Fo32OFr565s8Q/v4cTmRCwXl76V5DFxbY +hoDnVQ9fuNotI7h70/1Tb1z+Oh/xJRdlG4NP3PeuVpqqOhBjnZBSSgBr2SdfeW7Y9XH GQkS4vEDD1Ce/Gh5Cl+/lvwKYPFY7ctieitZQ= Received: by 10.224.176.200 with SMTP id bf8mr2318990qab.181.1306577305078; Sat, 28 May 2011 03:08:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.45.202 with HTTP; Sat, 28 May 2011 03:08:05 -0700 (PDT) From: Blue Swirl Date: Sat, 28 May 2011 13:08:05 +0300 Message-ID: To: qemu-devel , Richard Henderson X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.180 Subject: [Qemu-devel] [PATCH 09/18] TCG/HPPA: use stack for TCG temps 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 Use stack instead of temp_buf array in CPUState for TCG temps. Signed-off-by: Blue Swirl --- tcg/hppa/tcg-target.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-target.c index bd40954..b900c88 100644 --- a/tcg/hppa/tcg-target.c +++ b/tcg/hppa/tcg-target.c @@ -1612,6 +1612,11 @@ static void tcg_target_qemu_prologue(TCGContext *s) /* Allocate space for the saved registers. */ frame_size += ARRAY_SIZE(tcg_target_callee_save_regs) * 4; + /* Use the space here for the TCG temps. */ + tcg_set_frame(s, TCG_REG_CALL_STACK, frame_size, + CPU_TEMP_BUF_NLONGS * sizeof(long)); + frame_size += CPU_TEMP_BUF_NLONGS * sizeof(long); + /* Align the allocated space. */ frame_size = ((frame_size + TCG_TARGET_STACK_ALIGN - 1) & -TCG_TARGET_STACK_ALIGN); @@ -1684,6 +1689,4 @@ static void tcg_target_init(TCGContext *s) tcg_regset_set_reg(s->reserved_regs, TCG_REG_R31); /* ble link reg */ tcg_add_target_add_op_defs(hppa_op_defs); - tcg_set_frame(s, TCG_AREG0, offsetof(CPUState, temp_buf), - CPU_TEMP_BUF_NLONGS * sizeof(long)); }