[PATCH] powerpc/kvm: fix build errors with older toolchains

Subsystems: kernel virtual machine for powerpc (kvm/powerpc), linux for powerpc (32-bit and 64-bit), the rest

STALE5502d

4 messages, 3 authors, 2011-08-10 · open the first message on its own page

[PATCH] powerpc/kvm: fix build errors with older toolchains

From: Nishanth Aravamudan <hidden>
Date: 2011-08-03 18:56:08

On a box with gcc 4.3.2, I see errors like:

arch/powerpc/kvm/book3s_hv_rmhandlers.S:1254: Error: Unrecognized opcode: stxvd2x
arch/powerpc/kvm/book3s_hv_rmhandlers.S:1316: Error: Unrecognized opcode: lxvd2x

Signed-off-by: Nishanth Aravamudan <redacted>
---
 arch/powerpc/kvm/book3s_hv_rmhandlers.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
index 6dd3358..de29501 100644
--- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
+++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
@@ -1251,7 +1251,7 @@ BEGIN_FTR_SECTION
 	reg = 0
 	.rept	32
 	li	r6,reg*16+VCPU_VSRS
-	stxvd2x	reg,r6,r3
+	STXVD2X(reg,r6,r3)
 	reg = reg + 1
 	.endr
 FTR_SECTION_ELSE
@@ -1313,7 +1313,7 @@ BEGIN_FTR_SECTION
 	reg = 0
 	.rept	32
 	li	r7,reg*16+VCPU_VSRS
-	lxvd2x	reg,r7,r4
+	LXVD2X(reg,r7,r4)
 	reg = reg + 1
 	.endr
 FTR_SECTION_ELSE
-- 
1.7.4.1

Re: [PATCH] powerpc/kvm: fix build errors with older toolchains

From: Alexander Graf <hidden>
Date: 2011-08-10 14:59:00

On 08/03/2011 08:55 PM, Nishanth Aravamudan wrote:
On a box with gcc 4.3.2, I see errors like:

arch/powerpc/kvm/book3s_hv_rmhandlers.S:1254: Error: Unrecognized opcode: stxvd2x
arch/powerpc/kvm/book3s_hv_rmhandlers.S:1316: Error: Unrecognized opcode: lxvd2x
Paul, mind to ack?


Alex
quoted hunk
Signed-off-by: Nishanth Aravamudan<redacted>
---
  arch/powerpc/kvm/book3s_hv_rmhandlers.S |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
index 6dd3358..de29501 100644
--- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
+++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
@@ -1251,7 +1251,7 @@ BEGIN_FTR_SECTION
  	reg = 0
  	.rept	32
  	li	r6,reg*16+VCPU_VSRS
-	stxvd2x	reg,r6,r3
+	STXVD2X(reg,r6,r3)
  	reg = reg + 1
  	.endr
  FTR_SECTION_ELSE
@@ -1313,7 +1313,7 @@ BEGIN_FTR_SECTION
  	reg = 0
  	.rept	32
  	li	r7,reg*16+VCPU_VSRS
-	lxvd2x	reg,r7,r4
+	LXVD2X(reg,r7,r4)
  	reg = reg + 1
  	.endr
  FTR_SECTION_ELSE

Re: [PATCH] powerpc/kvm: fix build errors with older toolchains

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2011-08-10 19:18:14

On Wed, 2011-08-10 at 16:58 +0200, Alexander Graf wrote:
On 08/03/2011 08:55 PM, Nishanth Aravamudan wrote:
quoted
On a box with gcc 4.3.2, I see errors like:

arch/powerpc/kvm/book3s_hv_rmhandlers.S:1254: Error: Unrecognized opcode: stxvd2x
arch/powerpc/kvm/book3s_hv_rmhandlers.S:1316: Error: Unrecognized opcode: lxvd2x
Paul, mind to ack?
I merged it already :-) It was trivial & annoying enough.

Cheers,
Ben.
Alex
quoted
Signed-off-by: Nishanth Aravamudan<redacted>
---
  arch/powerpc/kvm/book3s_hv_rmhandlers.S |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
index 6dd3358..de29501 100644
--- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
+++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
@@ -1251,7 +1251,7 @@ BEGIN_FTR_SECTION
  	reg = 0
  	.rept	32
  	li	r6,reg*16+VCPU_VSRS
-	stxvd2x	reg,r6,r3
+	STXVD2X(reg,r6,r3)
  	reg = reg + 1
  	.endr
  FTR_SECTION_ELSE
@@ -1313,7 +1313,7 @@ BEGIN_FTR_SECTION
  	reg = 0
  	.rept	32
  	li	r7,reg*16+VCPU_VSRS
-	lxvd2x	reg,r7,r4
+	LXVD2X(reg,r7,r4)
  	reg = reg + 1
  	.endr
  FTR_SECTION_ELSE
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH] powerpc/kvm: fix build errors with older toolchains

From: Alexander Graf <hidden>
Date: 2011-08-10 21:47:25

On 10.08.2011, at 20:56, Benjamin Herrenschmidt wrote:
On Wed, 2011-08-10 at 16:58 +0200, Alexander Graf wrote:
quoted
On 08/03/2011 08:55 PM, Nishanth Aravamudan wrote:
quoted
On a box with gcc 4.3.2, I see errors like:
=20
arch/powerpc/kvm/book3s_hv_rmhandlers.S:1254: Error: Unrecognized =
opcode: stxvd2x
quoted
quoted
arch/powerpc/kvm/book3s_hv_rmhandlers.S:1316: Error: Unrecognized =
opcode: lxvd2x
quoted
=20
Paul, mind to ack?
=20
I merged it already :-) It was trivial & annoying enough.
Alright then, I won't touch it :)


Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help