diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-04-28 15:07:44 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-04-28 15:07:44 -0400 |
commit | 7bb70e3e30f30c669e475c47b950f0abd24367d0 (patch) | |
tree | edfe327e2b0acb3375f754b842fa8c473e3cd536 | |
parent | 20c85537871c131ec6c23d944db1f6b21da298fe (diff) | |
download | gem5-7bb70e3e30f30c669e475c47b950f0abd24367d0.tar.xz |
Fixed constants to work on 32 bit hosts
--HG--
extra : convert_revision : acc8e6f60cfdca518fa45afef4165395cba23d4f
-rw-r--r-- | arch/sparc/isa/decoder.isa | 4 | ||||
-rw-r--r-- | arch/sparc/process.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/isa/decoder.isa b/arch/sparc/isa/decoder.isa index 792918267..ca409fa66 100644 --- a/arch/sparc/isa/decoder.isa +++ b/arch/sparc/isa/decoder.isa @@ -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}}, diff --git a/arch/sparc/process.cc b/arch/sparc/process.cc index f771b0d19..7f2b0d40a 100644 --- a/arch/sparc/process.cc +++ b/arch/sparc/process.cc @@ -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. |