hardware: Fix implementation of bcopy.