From patchwork Tue May 21 10:57:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 245266 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 2E0CB2C0084 for ; Tue, 21 May 2013 20:59:48 +1000 (EST) Received: from localhost ([::1]:39913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekID-0006NC-V2 for incoming@patchwork.ozlabs.org; Tue, 21 May 2013 06:59:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGJ-0003Ze-UB for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UekGI-0004yQ-QC for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:47 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:49489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGI-0004yF-GC for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:46 -0400 Received: by mail-ee0-f45.google.com with SMTP id l10so298207eei.4 for ; Tue, 21 May 2013 03:57:45 -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:in-reply-to :references; bh=WT4YVnbfqOoY9ODMz1gxCD20FTqsL8hBLeUPoOcFGTQ=; b=WgyS681TT3zPeZsGOWZDpAfwB3NdAn9vC+nBgedRAd8nSwAvZf+9SGvZujy44TJK0F 2MQw9CP3Ba2nB8u+iU6eBvLt7hyR0o7xA2o1cmna4seynGP2416ytjm9x8VLPqDof9Rp XPH3mgwXGysoDltmCaKj9d2Y4qaOV096qM4IYJFP/BcBbnIVy6J/oBDebVG4HIIC0J5m cwc1AonCo0dcdeCTvbyowgYlpCJVlr2+z6W7ImAypdXF18HpZGLGb91n7OkuFWD9M795 OodC3RuK+9l4ohtAI/kftXMLfCoNE2X8HubSYgpNq7/e6pj7oBVssdLcKtGh4M+dJ9Jx PEqw== X-Received: by 10.14.181.131 with SMTP id l3mr5260881eem.16.1369133865665; Tue, 21 May 2013 03:57:45 -0700 (PDT) Received: from playground.lan (net-37-116-223-193.cust.dsl.vodafone.it. [37.116.223.193]) by mx.google.com with ESMTPSA id a5sm2754398ees.6.2013.05.21.03.57.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 21 May 2013 03:57:44 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 21 May 2013 12:57:05 +0200 Message-Id: <1369133851-1894-5-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1369133851-1894-1-git-send-email-pbonzini@redhat.com> References: <1369133851-1894-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.45 Cc: peter.maydell@linaro.org, jan.kiszka@gmail.com, David Gibson Subject: [Qemu-devel] [PATCH 04/30] exec: eliminate stq_phys_notdirty 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 It is not used anywhere. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori --- exec.c | 27 --------------------------- include/exec/cpu-common.h | 1 - include/exec/poison.h | 1 - 3 files changed, 29 deletions(-) diff --git a/exec.c b/exec.c index fa5f9c3..1355661 100644 --- a/exec.c +++ b/exec.c @@ -2390,33 +2390,6 @@ void stl_phys_notdirty(hwaddr addr, uint32_t val) } } -void stq_phys_notdirty(hwaddr addr, uint64_t val) -{ - uint8_t *ptr; - MemoryRegionSection *section; - - section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); - - if (!memory_region_is_ram(section->mr) || section->readonly) { - addr = memory_region_section_addr(section, addr); - if (memory_region_is_ram(section->mr)) { - section = &phys_sections[phys_section_rom]; - } -#ifdef TARGET_WORDS_BIGENDIAN - io_mem_write(section->mr, addr, val >> 32, 4); - io_mem_write(section->mr, addr + 4, (uint32_t)val, 4); -#else - io_mem_write(section->mr, addr, (uint32_t)val, 4); - io_mem_write(section->mr, addr + 4, val >> 32, 4); -#endif - } else { - ptr = qemu_get_ram_ptr((memory_region_get_ram_addr(section->mr) - & TARGET_PAGE_MASK) - + memory_region_section_addr(section, addr)); - stq_p(ptr, val); - } -} - /* warning: addr must be aligned */ static inline void stl_phys_internal(hwaddr addr, uint32_t val, enum device_endian endian) diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index af851aa..af5258d 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -102,7 +102,6 @@ uint32_t lduw_phys(hwaddr addr); uint32_t ldl_phys(hwaddr addr); uint64_t ldq_phys(hwaddr addr); void stl_phys_notdirty(hwaddr addr, uint32_t val); -void stq_phys_notdirty(hwaddr addr, uint64_t val); void stw_phys(hwaddr addr, uint32_t val); void stl_phys(hwaddr addr, uint32_t val); void stq_phys(hwaddr addr, uint64_t val); diff --git a/include/exec/poison.h b/include/exec/poison.h index 7d7b23b..2341a75 100644 --- a/include/exec/poison.h +++ b/include/exec/poison.h @@ -42,7 +42,6 @@ #pragma GCC poison ldl_phys #pragma GCC poison ldq_phys #pragma GCC poison stl_phys_notdirty -#pragma GCC poison stq_phys_notdirty #pragma GCC poison stw_phys #pragma GCC poison stl_phys #pragma GCC poison stq_phys