Skip to contentSkip to conversation

Risu PPC improvements

PATCH Applied Nikunj A Dadhania 2 participants 5 messages Feb 9, 2017 – Feb 10, 2017

lore
Share & tools
lore
#0 lore raw

cover Risu PPC improvements

The series contains some fixes/cleanup for ppc64le

Nikunj A Dadhania (3):
risu_ppc64le: set r23 as the comment says
risu_ppc64le: zero the xer register
risu_ppc64le: remove aarch64 related comments

 risugen_ppc64.pm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/3 risu_ppc64le: set r23 as the comment says

---
 risugen_ppc64.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
risugen_ppc64.pm +2 -2
index 8e323a2..0532e3a 100644
@@ -167,9 +167,9 @@ sub clear_vr_registers()
     # addi r22, r1, 32
     insn32(0x3ac10020);
     # li r23, 0
-    write_mov_ri(23, 1);
+    write_mov_ri(23, 0);
     # std r23, 0(r22)
-    insn32(0xfaf60000); 
+    insn32(0xfaf60000);
 
     for (my $i = 0; $i < 32; $i++) {
         # vxor i, i, i
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/3 risu_ppc64le: zero the xer register

In reply to Nikunj A Dadhania

Observed failures running with P9 mambo model, and figured out that the xer wasn't initialized.

---
 risugen_ppc64.pm | 3 +++
 1 file changed, 3 insertions(+)
risugen_ppc64.pm +3 -0
index 0532e3a..03f9317 100644
@@ -168,6 +168,9 @@ sub clear_vr_registers()
     insn32(0x3ac10020);
     # li r23, 0
     write_mov_ri(23, 0);
+    # zero the xer register
+    # mtxer   r23
+    insn32(0x7ee103a6);
     # std r23, 0(r22)
     insn32(0xfaf60000);
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/3 risu_ppc64le: remove aarch64 related comments

In reply to Nikunj A Dadhania
---
 risugen_ppc64.pm | 2 --
 1 file changed, 2 deletions(-)
risugen_ppc64.pm +0 -2
index 03f9317..f208a54 100644
@@ -84,8 +84,6 @@ sub write_sxt32($$)
 
 sub write_mov_ri($$)
 {
-    # We always use a MOVW/MOVT pair, for simplicity.
-    # on aarch64, we use a MOVZ/MOVK pair.
     my ($rd, $imm) = @_;
 
     if (($imm >> 16) & 0xffff) {
Signature · 1 line
2.7.4
#4 lore raw
In reply to Nikunj A Dadhania
Quoted 9 lines · Nikunj A Dadhania

The series contains some fixes/cleanup for ppc64le

Nikunj A Dadhania (3):
risu_ppc64le: set r23 as the comment says
risu_ppc64le: zero the xer register
risu_ppc64le: remove aarch64 related comments

 risugen_ppc64.pm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Applied to risu master, thanks.

-- PMM