From patchwork Thu Jul 10 15:50:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 33439 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 97F05203F4 for ; Thu, 10 Jul 2014 15:54:55 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id m20sf31129718qcx.5 for ; Thu, 10 Jul 2014 08:54:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=ONZxCs9hite7ipiKmJ3tP4SQcqng6l7r+Dt0rXpi1Ho=; b=g+1RTaDOFqOG+64Fci6H2SPk3IW/6Q5j66uzDkpcqv0AfcdJTTJ6k2MKDU5lCd9hfn shEblwantbDM6SyzZIxDCyw2Qsij9273UWQUtVFEOyH1ahRNeI0jx+Utfk8klXM/RN6+ zyYvZmcyTlhjZx4vl5D19uuh/izKMEXxCfYggIaBMIS+iLFPq4uZF8PXE2iMd/m1j5Z2 gl0KmIG5ku807KBHKqjBZFJObdbE03qfLYSpORwXor0FvClrIN5QckzWMNamCGcLFrhK 4UJe59USUgNuUBthS07Lk6FJARxreZ4kjK/ue1tk8gZwAacX4hLgEfu313SSIMEK0JlY O6WA== X-Gm-Message-State: ALoCoQm0T+456ElBEjH9F3zdw+q2IJRzO8NZfTp/5iOnPLKx0PHc5pbJzoT19mPkZ8encQeQKHlu X-Received: by 10.58.230.103 with SMTP id sx7mr23956294vec.33.1405007695245; Thu, 10 Jul 2014 08:54:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.106 with SMTP id e97ls107113qgd.43.gmail; Thu, 10 Jul 2014 08:54:55 -0700 (PDT) X-Received: by 10.52.84.2 with SMTP id u2mr745306vdy.84.1405007695134; Thu, 10 Jul 2014 08:54:55 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id ph16si14330324veb.52.2014.07.10.08.54.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jul 2014 08:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so10878235vcb.15 for ; Thu, 10 Jul 2014 08:54:55 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr38344790vdc.8.1405007695051; Thu, 10 Jul 2014 08:54:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp146108vcb; Thu, 10 Jul 2014 08:54:54 -0700 (PDT) X-Received: by 10.224.63.194 with SMTP id c2mr79375575qai.21.1405007694585; Thu, 10 Jul 2014 08:54:54 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id y46si65190406qgy.90.2014.07.10.08.54.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 10 Jul 2014 08:54:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:38688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5GgP-0003Og-Ct for patch@linaro.org; Thu, 10 Jul 2014 11:54:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5GbZ-0001fp-Ft for qemu-devel@nongnu.org; Thu, 10 Jul 2014 11:49:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5GbT-00071A-UX for qemu-devel@nongnu.org; Thu, 10 Jul 2014 11:49:53 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:35650 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5GbT-000715-OP for qemu-devel@nongnu.org; Thu, 10 Jul 2014 11:49:47 -0400 Received: from localhost ([127.0.0.1] helo=zen.linaro.local) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1X5GgK-0007L4-CS; Thu, 10 Jul 2014 17:54:48 +0200 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 10 Jul 2014 16:50:02 +0100 Message-Id: <1405007407-23549-6-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1405007407-23549-1-git-send-email-alex.bennee@linaro.org> References: <1405007407-23549-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 88.198.71.155 Cc: Riku Voipio , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [Qemu-devel] [PATCH v2 05/10] arm/nwfps: replace cpsr_write with set_condition_codes 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.bennee@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This is a pre-cursor to removing the cpsr_write function completely from the code base. set_condition_codes() only affects the integer condition flags. Signed-off-by: Alex Bennée Acked-by: Riku Voipio --- v2 - fix nwfpe set_condition_codes diff --git a/linux-user/arm/nwfpe/fpa11.h b/linux-user/arm/nwfpe/fpa11.h index bb9ac65..c7883d0 100644 --- a/linux-user/arm/nwfpe/fpa11.h +++ b/linux-user/arm/nwfpe/fpa11.h @@ -108,7 +108,7 @@ static inline void writeRegister(unsigned int x, unsigned int y) static inline void writeConditionCodes(unsigned int x) { - cpsr_write(user_registers,x,CPSR_NZCV); + set_condition_codes(user_registers, x); } #define ARM_REG_PC 15