qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Remove TARGET_PHYS_ADDR_BITS define completely
@ 2012-10-05 17:09 Peter Maydell
  2012-10-05 20:23 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2012-10-05 17:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Alexander Graf, Avi Kivity, patches

Following commit 4be403c81 TARGET_PHYS_ADDR_BITS is always 64,
and it's only used in one place (that commit removed all the
other uses). Remove it completely, to avoid confusion with
the genuinely useful TARGET_PHYS_ADDR_SPACE_BITS.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target-ppc/mmu_helper.c |    2 --
 targphys.h              |    1 -
 2 files changed, 3 deletions(-)

diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c
index 532b114..a549c4d 100644
--- a/target-ppc/mmu_helper.c
+++ b/target-ppc/mmu_helper.c
@@ -1509,10 +1509,8 @@ static void mmubooke_dump_mmu(FILE *f, fprintf_function cpu_fprintf,
         mask = ~(entry->size - 1);
         ea = entry->EPN & mask;
         pa = entry->RPN & mask;
-#if (TARGET_PHYS_ADDR_BITS >= 36)
         /* Extend the physical address to 36 bits */
         pa |= (target_phys_addr_t)(entry->RPN & 0xF) << 32;
-#endif
         size /= 1024;
         if (size >= 1024) {
             snprintf(size_buf, sizeof(size_buf), "%3" PRId64 "M", size / 1024);
diff --git a/targphys.h b/targphys.h
index 08cade9..f37c0c9 100644
--- a/targphys.h
+++ b/targphys.h
@@ -3,7 +3,6 @@
 #ifndef TARGPHYS_H
 #define TARGPHYS_H
 
-#define TARGET_PHYS_ADDR_BITS 64
 /* target_phys_addr_t is the type of a physical address (its size can
    be different from 'target_ulong').  */
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Remove TARGET_PHYS_ADDR_BITS define completely
  2012-10-05 17:09 [Qemu-devel] [PATCH] Remove TARGET_PHYS_ADDR_BITS define completely Peter Maydell
@ 2012-10-05 20:23 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2012-10-05 20:23 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-trivial, patches, qemu-devel, Avi Kivity


On 05.10.2012, at 19:09, Peter Maydell wrote:

> Following commit 4be403c81 TARGET_PHYS_ADDR_BITS is always 64,
> and it's only used in one place (that commit removed all the
> other uses). Remove it completely, to avoid confusion with
> the genuinely useful TARGET_PHYS_ADDR_SPACE_BITS.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Thanks, applied to ppc-next

(But I wouldn't mind it going through trivial either. Whoever sends a pull request first ...)


Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-05 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 17:09 [Qemu-devel] [PATCH] Remove TARGET_PHYS_ADDR_BITS define completely Peter Maydell
2012-10-05 20:23 ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).