Fixed constants to work on 32 bit hosts
authorGabe Black <gblack@eecs.umich.edu>
Fri, 28 Apr 2006 19:07:44 +0000 (15:07 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 28 Apr 2006 19:07:44 +0000 (15:07 -0400)
--HG--
extra : convert_revision : acc8e6f60cfdca518fa45afef4165395cba23d4f

arch/sparc/isa/decoder.isa
arch/sparc/process.cc

index 792918267569aa1bdb21ede70db2fe32a93e75e8..ca409fa6602b3ebb412cb462a315d34ed17b8b64 100644 (file)
@@ -127,7 +127,7 @@ decode OP default Unknown::unknown()
                     if(Rd.udw<63:31> != 0)
                         Rd.udw = 0x7FFFFFFF;
                     else if(Rd.udw<63:> && Rd.udw<62:31> != 0xFFFFFFFF)
-                        Rd.udw = 0xFFFFFFFF80000000;
+                        Rd.udw = 0xFFFFFFFF80000000ULL;
                 }
             }});
         }
@@ -214,7 +214,7 @@ decode OP default Unknown::unknown()
                     overflow = (resTemp<63:31> != 0);
                     underflow = (resTemp<63:> && resTemp<62:31> != 0xFFFFFFFF);
                     if(overflow) Rd = resTemp = 0x7FFFFFFF;
-                    else if(underflow) Rd = resTemp = 0xFFFFFFFF80000000;
+                    else if(underflow) Rd = resTemp = 0xFFFFFFFF80000000ULL;
                     else Rd = resTemp;
                 } }},
                 {{0}},
index f771b0d19e93069931dff2db7d0fc854867493bf..7f2b0d40a42f563c350ca322896c0684218081d5 100644 (file)
@@ -85,7 +85,7 @@ SparcLiveProcess::SparcLiveProcess(const std::string &nm, ObjectFile *objFile,
 
     // Set up stack. On SPARC Linux, stack goes from the top of memory
     // downward, less the hole for the kernel address space.
-    stack_base = ((Addr)0x80000000000);
+    stack_base = ((Addr)0x80000000000ULL);
 
     // Set up region for mmaps.  Tru64 seems to start just above 0 and
     // grow up from there.