* [Qemu-devel] Bug in recent CFAR patch
@ 2011-08-10 5:22 David Gibson
2011-08-10 8:01 ` Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: David Gibson @ 2011-08-10 5:22 UTC (permalink / raw)
To: agraf; +Cc: qemu-devel
Hi Alex,
I realised there was a bug in the CFAR patch in my recent qemu patch
series which breaks the build for ppc32 targets.
There is a patch to fix it below, but I'm not sure if you want this
standalone, or if you'd prefer I fold it into the CFAR patch replacing
the one you have now.
Please advise :)
>From 44096d5c32d3d4de2a6d600dc5d8c1539e79c85d Mon Sep 17 00:00:00 2001
From: David Gibson <david@gibson.dropbear.id.au>
Date: Fri, 5 Aug 2011 16:49:45 +1000
Subject: [PATCH] Fixup for 32-bit compile errors due to CFAR
---
target-ppc/translate_init.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 510d9dd..35ce8bf 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -130,6 +130,7 @@ static void spr_write_lr (void *opaque, int sprn, int gprn)
}
/* CFAR */
+#if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY)
static void spr_read_cfar (void *opaque, int gprn, int sprn)
{
tcg_gen_mov_tl(cpu_gpr[gprn], cpu_cfar);
@@ -139,6 +140,7 @@ static void spr_write_cfar (void *opaque, int sprn, int gprn)
{
tcg_gen_mov_tl(cpu_cfar, cpu_gpr[gprn]);
}
+#endif /* defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) */
/* CTR */
static void spr_read_ctr (void *opaque, int gprn, int sprn)
--
1.7.5.4
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Bug in recent CFAR patch
2011-08-10 5:22 [Qemu-devel] Bug in recent CFAR patch David Gibson
@ 2011-08-10 8:01 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2011-08-10 8:01 UTC (permalink / raw)
To: David Gibson; +Cc: qemu-devel@nongnu.org
Am 10.08.2011 um 07:22 schrieb David Gibson <david@gibson.dropbear.id.au>:
> Hi Alex,
>
> I realised there was a bug in the CFAR patch in my recent qemu patch
> series which breaks the build for ppc32 targets.
>
> There is a patch to fix it below, but I'm not sure if you want this
> standalone, or if you'd prefer I fold it into the CFAR patch replacing
> the one you have now.
>
> Please advise :)
I'd prefer it folded in, but let me review the other few patches first :)
Alex
>
> From 44096d5c32d3d4de2a6d600dc5d8c1539e79c85d Mon Sep 17 00:00:00 2001
> From: David Gibson <david@gibson.dropbear.id.au>
> Date: Fri, 5 Aug 2011 16:49:45 +1000
> Subject: [PATCH] Fixup for 32-bit compile errors due to CFAR
>
> ---
> target-ppc/translate_init.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index 510d9dd..35ce8bf 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -130,6 +130,7 @@ static void spr_write_lr (void *opaque, int sprn, int gprn)
> }
>
> /* CFAR */
> +#if defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY)
> static void spr_read_cfar (void *opaque, int gprn, int sprn)
> {
> tcg_gen_mov_tl(cpu_gpr[gprn], cpu_cfar);
> @@ -139,6 +140,7 @@ static void spr_write_cfar (void *opaque, int sprn, int gprn)
> {
> tcg_gen_mov_tl(cpu_cfar, cpu_gpr[gprn]);
> }
> +#endif /* defined(TARGET_PPC64) && !defined(CONFIG_USER_ONLY) */
>
> /* CTR */
> static void spr_read_ctr (void *opaque, int gprn, int sprn)
> --
> 1.7.5.4
>
>
>
> --
> David Gibson | I'll have my music baroque, and my code
> david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
> | _way_ _around_!
> http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-10 8:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-10 5:22 [Qemu-devel] Bug in recent CFAR patch David Gibson
2011-08-10 8:01 ` 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).