UserspaceEmulator: Wrap the GPRs in ValueWithShadow

...instead of manually tracking their shadow data.
This commit is contained in:
Ali Mohammad Pur 2022-02-27 23:58:53 +03:30 committed by Andreas Kling
commit 70b53b44b2
Notes: sideshowbarker 2024-07-17 17:56:50 +09:00
3 changed files with 25 additions and 30 deletions

View file

@ -107,12 +107,6 @@ public:
{
}
ValueAndShadowReference(T& value, T& shadow)
: m_value(value)
, m_shadow(*bit_cast<ShadowType*>(&shadow))
{
}
bool is_uninitialized() const
{
for (size_t i = 0; i < sizeof(ShadowType); ++i) {