mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2025-03-13 16:02:17 +01:00
std::memset is used to clear the entire register structure, which requires that the Regs struct be trivially copyable (otherwise undefined behavior is invoked). This prevents the case where a non-trivial type is potentially added to the struct.