1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:47:35 +00:00

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
parent f6e82a8e0a
commit 70b53b44b2
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) {