From patchwork Thu Oct 24 21:08:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 286023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DD7B12C007C for ; Fri, 25 Oct 2013 08:14:00 +1100 (EST) Received: from localhost ([::1]:56261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZSEA-0004Bm-NW for incoming@patchwork.ozlabs.org; Thu, 24 Oct 2013 17:13:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZSCN-0002Ex-1e for qemu-devel@nongnu.org; Thu, 24 Oct 2013 17:12:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZSCE-0006Id-GE for qemu-devel@nongnu.org; Thu, 24 Oct 2013 17:12:07 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:36199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZSCE-0006IG-8M for qemu-devel@nongnu.org; Thu, 24 Oct 2013 17:11:58 -0400 Received: by mail-lb0-f178.google.com with SMTP id o14so67039lbi.23 for ; Thu, 24 Oct 2013 14:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=7UutoxQwgzEm2aLAg7vjWg5ceQBAaaHykGN4wdB0QiI=; b=Hr0WSxegpilD+ujPttY5NquhbcqWhpgOcrNEKvFO0PY0ZiOPk8B6f8ouquNAlRX2a/ aHD3LQXbWlgM2zqmAuyCg40aKkXFpBZNdJohRlsNCmqjl0/JrXK6ArX5YxZ8zBad51Lf xNIYtpkm+qbju0ADl6v//3zXQlYPFuaGg09tXagScDZIKmp1RNM/T8COUffauhFv7rey du9XlHotRg2lc5tW+UlU+9Ob8qAe9Q0O6ICXc5In27hX63Z1doUQXumoq4Dt6nHvepP8 /nQ1ZHBKPcdDSm4+/8CjkYqD3fAH/LgvsXf+HI6QTVdSRsQbzeq4RIpr/2mTzAQH2MYx XSZg== X-Received: by 10.112.125.33 with SMTP id mn1mr148867lbb.8.1382649117264; Thu, 24 Oct 2013 14:11:57 -0700 (PDT) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id k6sm3236322lae.9.2013.10.24.14.11.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Oct 2013 14:11:56 -0700 (PDT) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Thu, 24 Oct 2013 23:08:48 +0200 Message-Id: <1382648937-14769-2-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1382648937-14769-1-git-send-email-edgar.iglesias@gmail.com> References: <1382648937-14769-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::232 Subject: [Qemu-devel] [PATCH 01/10] microblaze: Clarify expected input of write_carry 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 From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 1b937b3..76b2570 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -150,6 +150,10 @@ static void read_carry(DisasContext *dc, TCGv d) tcg_gen_shri_tl(d, cpu_SR[SR_MSR], 31); } +/* + * write_carry sets the carry bits in MSR based on bit 0 of v. + * v[31:1] are ignored. + */ static void write_carry(DisasContext *dc, TCGv v) { TCGv t0 = tcg_temp_new();