summaryrefslogtreecommitdiff
path: root/sim/system.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-02-03 00:16:44 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-02-03 00:16:44 -0500
commit2939a7089ad89e38b24f96143dbd3c4292ac0287 (patch)
tree70c8435015aa0615f9287ce8de437407087b12e5 /sim/system.cc
parent3d2773195c4d7ecd710ceda19612c1dc228fb1e0 (diff)
downloadgem5-2939a7089ad89e38b24f96143dbd3c4292ac0287.tar.xz
byte_swap.hh was removed from arch/alpha/, and replaced by sim/byteswap.hh. The new file uses LittleEndianGuest and BigEndianGuest namespaces to allow selecting the appropriate functions.
arch/alpha/alpha_linux_process.cc: arch/alpha/alpha_tru64_process.cc: Added the endianness namespace. This may change. cpu/exec_context.hh: Changed the include path for byteswap, and forced LittleEndianness for lack of a better solution. cpu/o3/alpha_cpu.hh: Forced LittleEndianness, for lack of a better solution. cpu/o3/alpha_cpu_impl.hh: Cleared away some commented out code. cpu/o3/fetch_impl.hh: Changed the include patch for byteswap, and forced LittleEndianness for lack of a better solution. cpu/simple/cpu.cc: Added an include for byteswap.hh, and fixed the SimpleCPU to LittleEndian. This cpu only does alpha, so that's fine. dev/disk_image.cc: Changed the include path of byteswap.hh kern/freebsd/freebsd_system.cc: kern/linux/linux_system.cc: Added an include for byteswap.hh, and forced LittleEndianness for lack of a better solution. sim/system.cc: Forced LittleEndianness for lack of a better solution. --HG-- extra : convert_revision : b95d3e1265a825e04bd77622a3ac09fbac6bd206
Diffstat (limited to 'sim/system.cc')
-rw-r--r--sim/system.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/system.cc b/sim/system.cc
index 4bcc89c56..a69bf27f1 100644
--- a/sim/system.cc
+++ b/sim/system.cc
@@ -152,8 +152,8 @@ System::System(Params *p)
if (!hwrpb)
panic("could not translate hwrpb addr\n");
- *(uint64_t*)(hwrpb+0x50) = htog(params->system_type);
- *(uint64_t*)(hwrpb+0x58) = htog(params->system_rev);
+ *(uint64_t*)(hwrpb+0x50) = LittleEndianGuest::htog(params->system_type);
+ *(uint64_t*)(hwrpb+0x58) = LittleEndianGuest::htog(params->system_rev);
} else
panic("could not find hwrpb\n");
@@ -249,7 +249,7 @@ System::setAlphaAccess(Addr access)
if (!m5AlphaAccess)
panic("could not translate m5AlphaAccess addr\n");
- *m5AlphaAccess = htog(EV5::Phys2K0Seg(access));
+ *m5AlphaAccess = LittleEndianGuest::htog(EV5::Phys2K0Seg(access));
} else
panic("could not find m5AlphaAccess\n");
}