[SCM] master: Setting PPC32/64 as always-Zero registers for tests.

jflavio@sourceware.org jflavio@sourceware.org
Tue Dec 4 18:11:00 GMT 2007


The branch, master has been updated
       via  7f585a43eb4eddf50707b5034a7881c5fad268b9 (commit)
      from  74bf0b4382a473049c1e6807d58bf26435d6076d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 7f585a43eb4eddf50707b5034a7881c5fad268b9
Author: Jose Flavio Aguilar Paulino <joseflavio@gmail.com>
Date:   Tue Dec 4 15:47:19 2007 -0200

    Setting PPC32/64 as always-Zero registers for tests.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/testbed/ChangeLog     |    3 ++-
 frysk-core/frysk/testbed/RegsCase.java |   11 +++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/testbed/ChangeLog b/frysk-core/frysk/testbed/ChangeLog
index 95bc308..47fc145 100644
--- a/frysk-core/frysk/testbed/ChangeLog
+++ b/frysk-core/frysk/testbed/ChangeLog
@@ -2,7 +2,8 @@
 
 	* FryskAsm.java: Add PowerPC32/64.
 	
-	* RegsCase.java: Put values to PowerPC64 registers. 
+	* RegsCase.java: Put values to PowerPC64 registers. Set r0 from
+	PowerPC32 and 64 as Zero registers.
 
 2007-12-03  Andrew Cagney  <cagney@redhat.com>
 
diff --git a/frysk-core/frysk/testbed/RegsCase.java b/frysk-core/frysk/testbed/RegsCase.java
index af5fbac..17b12fa 100644
--- a/frysk-core/frysk/testbed/RegsCase.java
+++ b/frysk-core/frysk/testbed/RegsCase.java
@@ -225,7 +225,8 @@ public abstract class RegsCase extends TestLib {
 	    RegsCase.assertEquals(register.getName() + " size",
 				  bytes.length, register.getType().getSize());
 	    for (int i = 0; i < bytes.length; i++) {
-		RegsCase.assertTrue(register.getName() + "[" + i + "] != 0",
+		RegsCase.assertTrue(register.getName() + "[" + 
+				    i + "] != 0 (found " + bytes[i] + " there)",
 				    bytes[i] != 0);
 	    }
 	}
@@ -605,8 +606,8 @@ public abstract class RegsCase extends TestLib {
 	;
 
     private Values PPC32 = new Values()
-        .put(PPC32Registers.GPR0, 
-             new byte[] { (byte)0xa3,(byte)0x9c,0x20,(byte)0x08 })
+	//in PowerPC gpr0 is always Zero
+        .put(PPC32Registers.GPR0, 0, 0)
 	.put(PPC32Registers.GPR1, 
              new byte[] { (byte)0x3a,(byte)0x82,0x27,(byte)0xf1 })
 	.put(PPC32Registers.GPR2,
@@ -677,9 +678,7 @@ public abstract class RegsCase extends TestLib {
 
     private Values PPC64 = new Values()
         //in PowerPC the GPR0 is always Zero
-        .put(PPC64Registers.GPR0, // 0x0000000000000000
-             new byte[] { (byte)0x00, (byte)0x00,0x00, (byte)0x00,
-                          (byte)0x00, 0x00,(byte)0x00,(byte)0x00 })
+        .put(PPC64Registers.GPR0, 0, 0)
         .put(PPC64Registers.GPR1, // 0x514c159c25c27735
              new byte[] { 0x51,0x4c,0x15,(byte)0x9c,
                           0x25,(byte)0xc2,0x77,0x35 })


hooks/post-receive
--
frysk system monitor/debugger



More information about the Frysk-cvs mailing list