base/intmath.hh:
only need FloorLog2(size_t) on a mac, so ifdefed for this
dev/alpha_console.cc:
Actually allocate the alphaAccess struct.
--HG--
extra : convert_revision :
1f50b1a025c8ee728a9f3d2c603ea38347234f54
return FloorLog2((uint64_t)x);
}
-inline int
+#if defined(__APPLE__)
+int
FloorLog2(size_t x)
{
assert(x > 0);
return FloorLog2((uint64_t)x);
}
+#endif
template <class T>
inline int
pioInterface->addAddrRange(addr, addr + size);
}
+ alphaAccess = new AlphaAccess;
alphaAccess->last_offset = size - 1;
alphaAccess->kernStart = system->getKernelStart();
alphaAccess->kernEnd = system->getKernelEnd();