diff options
Diffstat (limited to 'sim')
-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 47ffc4b01..3da92c447 100644 --- a/sim/system.cc +++ b/sim/system.cc @@ -154,8 +154,8 @@ System::System(Params *p) if (!hwrpb) panic("could not translate hwrpb addr\n"); - *(uint64_t*)(hwrpb+0x50) = htoa(params->system_type); - *(uint64_t*)(hwrpb+0x58) = htoa(params->system_rev); + *(uint64_t*)(hwrpb+0x50) = htog(params->system_type); + *(uint64_t*)(hwrpb+0x58) = htog(params->system_rev); } else panic("could not find hwrpb\n"); @@ -192,7 +192,7 @@ System::setAlphaAccess(Addr access) if (!m5AlphaAccess) panic("could not translate m5AlphaAccess addr\n"); - *m5AlphaAccess = htoa(EV5::Phys2K0Seg(access)); + *m5AlphaAccess = htog(EV5::Phys2K0Seg(access)); } else panic("could not find m5AlphaAccess\n"); } |