2018-01-01 08:35:08 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/Constants.hpp"
|
|
|
|
#include "Resources/Ee/Vpu/Vif/VifUnits.hpp"
|
|
|
|
|
|
|
|
/// RVif declares the collective VIF structure.
|
|
|
|
class RVif
|
|
|
|
{
|
|
|
|
public:
|
2018-07-28 10:33:56 -04:00
|
|
|
RVif();
|
2018-01-01 08:35:08 -05:00
|
|
|
|
2018-07-28 10:33:56 -04:00
|
|
|
/// VIF structure.
|
|
|
|
VifUnit_Base unit_0;
|
|
|
|
VifUnit_Base unit_1;
|
|
|
|
VifUnit_Base* units[Constants::EE::VPU::VIF::NUMBER_VIF_CORES];
|
2018-08-05 11:46:55 -04:00
|
|
|
|
|
|
|
template<class Archive>
|
|
|
|
void serialize(Archive & archive)
|
|
|
|
{
|
|
|
|
archive(
|
|
|
|
CEREAL_NVP(unit_0),
|
|
|
|
CEREAL_NVP(unit_1)
|
|
|
|
);
|
|
|
|
}
|
2018-01-01 08:35:08 -05:00
|
|
|
};
|