diff options
Diffstat (limited to 'sim/system.cc')
-rw-r--r-- | sim/system.cc | 6 |
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"); } |