Revert "Revert "fix device side size_type""
Revert "Revert "fix device side size_type""

This reverts commit ad978dd291b3c3dda1b002d88752bdfa88bd2c6b.

zhouyan/vSMC,zhouyan/vSMC,zhouyan/vSMC,zhouyan/vSMC